Now that we're a bit more familiar with Composer, we can move on to installing Laravel and booting up a server!
What if you worked through the first two lessons, but hit some kind of hurdle? Maybe your version of PHP doesn't meet Laravel's requirements (5.4), or maybe you don't have the Mcrypt extension installed. Well, instead, why don't we leverage a virtual machine for our development needs. And, luckily, Laravel once again makes this process a cinch!
Let's take baby steps, and figure out how to build your basic static web pages. In the process, you'll get your first taste of routing, controllers, and views.
Naturally, we need some way to pass data to our views. Let's review that in this lesson, while also touching upon some Blade constructs.
Imagine that you run the greatest Justin Bieber fanclub website of all time, and now want to add a section of your website that lists all of his songs, as well as the lyrics. How might we go about implementing such a thing?
We naturally don't want to hard-code our song-list. Let's switch over to an SQLite database, which will give us a chance to review migrations!
In this episode, you'll learn how to create your first Eloquent model. Additionally, for those wanting extra credit, at the end of the video, we'll discuss route model binding.
Lots to learn in this episode, so be prepared! As we learn how to update a database record with Eloquent, we'll also need to review everything from form model binding, to mass assignment, to REST.
Notice how we're having to create a bunch of routes for such a common task? Well, luckily, we can simplify this greatly!
What might be a potential downside to hardcoding all of your application URLs? Well, if, in the future, you decide to change any of them, you'll then have to update every single view, where the URL was referenced. Hmm - think there might be a way around this?
Let's continue our learning by figuring out how to add new songs to the database. In the process, we'll also discuss view partials.
In Laravel 5, form validation is a cinch. In fact, in this lesson, you'll learn how to start validating your forms, without adding a single line of code to your controllers!
Let's review the process of deleting records, while also touching upon Composer and its ability to autoload regular files.