Skip to main content

Prerequisite Videos

Watch both short videos before starting the lab. They introduce the framework and container environment you will investigate.

Watch Laravel in 100 Seconds, then keep the Laravel documentation available as a reference.

Video Transcript

Intro 0:00 [Music]
0:00 laravel a full stack PHP based web
0:03 framework famous for its carefully
0:04 crafted and much-loved developer
0:06 experience it was created in 2011 by
0:08 Taylor otwell who was inspired by prior
0:10 work like codeigniter or Symphony and
Overview
0:12 rails it has a large following of
0:14 independent developers thanks to its
0:16 laser focus on clean and minimal code
0:18 along with a huge ecosystem of tools
0:20 that can do the heavy lifting
0:21 traditionally it's used as a model view
0:23 controller framework to build
0:24 server-side web applications a model
0:26 represents data that can live in a wide
0:28 variety of databases while a view
0:30 represents what the end user sees in
0:31 HTML the user powered by blade templates
0:34 that can buy a PHP and HTML code into a
0:37 single file and finally we have a router
0:39 and controllers in the middle which
0:40 allow the user to safely interact with
0:42 the data model this pattern can be used
0:44 to build monolithic applications but
Code
0:46 laravel can also build Standalone apis
0:48 or integrate with popular front-end
0:50 Frameworks thanks to an adjacent Library
0:52 called inertia most importantly though
0:53 its ecosystem has out-of-the-box
0:55 solutions for features like user
0:57 authentication payments full text search
0:59 and many other others to get started
1:01 install PHP and composer then create a
1:03 new project by default it will be
1:05 configured with mySQL as the database
1:07 the application lifecycle starts in the
1:09 index PHP file when a user makes a
1:11 request it goes to the HTTP kernel which
1:14 contains middleware to intercept the
1:15 request and register service providers
1:17 like a router which itself determines
1:19 that controller action to trigger based
1:21 on the URL the user navigated to now a
1:24 controller is just a PHP class that
1:26 contains a variety of methods like show
1:28 update edit and destroy it follows a
1:30 convention where show represents a git
1:32 request for an individual entity while
1:35 store represents a post request to
1:37 create a new entity inside a method we
1:39 might use a model to make a query to the
1:41 database but instead of raw SQL code it
1:43 uses eloquent orm making the code far
1:46 more human readable every database table
1:48 has a corresponding model class which
1:50 can be customized as needed now back in
1:52 the controller the return value from a
1:54 method is a view the view is a blade
1:56 template that interpolates the data from
1:58 the database directly into HTML ml it
2:00 has the full power of PHP allowing you
2:02 to implement conditional logic and loops
2:04 with a familiar syntax but laravel comes
2:07 with a ton of other built-in features
2:08 like cues file storage websockets for
2:11 real-time apps just to name a few this
2:13 has been laravel in 100 seconds hit the
2:15 like button if you want to see more
2:16 short videos like this thanks for
2:18 watching and I will see you in the next
2:19 one

Continue to Explore the Apple Store.