Buy your loved one the ultimate gift. Lifetime gift certificates are $100 off.

Beginner

Laravel 5 Fundamentals

Each year, the Laracasts "Laravel From Scratch" series is refreshed to reflect the latest iteration of the framework. This is the 2015 edition, which uses version 5.0 of the framework.

Hi, I'm Jeffrey. Nice to meet you. So you're new to Laravel and modern PHP development? Interested in a guide, who will steer you through these new waters? Maybe I can help! Learning a framework can be a daunting task, but not to worry: learning Laravel is fun!

Start Series

Share this series on:

This series has been archived.

  • 01

    Episode 1 Run Time 9:32

    Meet Composer Free

    Before we can get started with Laravel, you'll first need to learn about Composer, which is PHP's premier dependency manager.

  • 02

    Episode 2 Run Time 10:26

    Virtual Machines and Homestead Free

    If you worked a long with the previous, but hit a roadblock with your PHP installation, you might consider using a virtual machine. Luckily, Homestead has your back here!

  • 03

    Episode 3 Run Time 9:10

    A Gentle Introduction to Routing, Controllers, and Views Free

    We've waited long enough! Let's see the codebase! In this episode, I'll give you a very gentle introduction to the basics of routing, controllers, and views.

  • 04

    Episode 4 Run Time 11:04

    Passing Data to Views Free

    So you've learned a bit about registering routes, and dispatching to controller methods, but how exactly do we pass data to our views? Let me show you!

  • 05

    Episode 5 Run Time 8:05

    Blade 101 Free

    Let's switch over to discussing the basics of Laravel's templating engine: Blade. While it's true that PHP, itself, is a templating engine, the truth is that it didn't evolve to become a very good one. Blade will make your life much easier and enjoyable. You'll love it!

  • 06

    Episode 6 Run Time 5:06

    Environments and Configuration Free

    A good understanding of how Laravel’s configuration process works is vital. Let’s take a few minutes to review the essentials.

  • 07

    Episode 7 Run Time 11:33

    Migrations Free

    Migrations are one of Laravel’s most powerful features. Think of them as version control for your database. If this concept is new to you, it might sound strange, but, trust me: you’ll love it!

  • 08

    Episode 8 Run Time 13:10

    Eloquent 101 Free

    Now that you've learned a bit about migrations, let's move on to the basics of using Eloquent. You'll love this!

  • 09

    Episode 9 Run Time 14:06

    Basic Model/Controller/View Workflow Free

    If you've done your homework from the previous episode, you should have a basic familiarity with how to use Eloquent. Let's put that to the test, and create a couple of pages to display some articles.

  • 10

    Episode 10 Run Time 19:08

    Forms Free

    Forms exist in just about every single web application. Let's review what that looks like in Laravel! Along the way, you'll be introduced to custom packages, service providers, and much more.

  • 11

    Episode 11 Run Time 11:31

    Dates, Mutators, and Scopes Free

    Before we tackle validation, let's take a break and talk a bit more about dates. In the process, though, we'll have the opportunity to research some nifty Eloquent features, such as mutators, query scopes, and more!

  • 12

    Episode 12 Run Time 12:19

    Form Requests and Controller Validation Free

    We've waited long enough. Let's review validation in Laravel 5, using two different methods. It's a cinch!

  • 13

    Episode 13 Run Time 19:27

    View Partials and Form Reuse Free

    Very quickly, you'll find yourself in situations, where you're tempted to copy and paste some form code into a new view. The most common example is for both create and update actions. Resist the urge! Instead, we'll leverage view partials.

    Along the way, you'll also learn a number of fun things, including resourceful routing, form model binding, generic form requests, and more!

  • 14

    Episode 14 Run Time 16:08

    Eloquent Relationships Free

    An article is written by a user of our application, right? Well, how exactly can we represent these sorts of relationships with Eloquent?

  • 15

    Episode 15 Run Time 16:03

    Easy Auth Free

    Out of the box, Laravel includes some useful authentication boilerplate to get you up and running as quickly as possible. In this lesson, we'll review this boilerplate, while also touching on a different way to register routes, as well as some more Eloquent training.

  • 16

    Episode 16 Run Time 17:31

    Ogres Are Like Middleware Free

    Initially, the idea of middleware can be confusing and daunting. Fortunately, once you understand how it all works, it's not too confusing at all!

  • 17

    Episode 17 Run Time 13:14

    Midterm Review Free

    Think about how much you've learned so far. Before we move ahead with new material, perhaps we should take a short break to review and harness the content from this series so far.

  • 18

    Episode 18 Run Time 7:02

    Route Model Binding Free

    Route model binding allows us to, very easily, inject model instances into our various controller methods. It's pretty neat; let me show you!

  • 19

    Episode 19 Run Time 11:26

    Manage Your Assets Free

    Let's take a break from our PHP, and instead focus on asset management. What's the best way to deal with this in a Laravel app? Well, we have you covered. Let's use Gulp and Laravel Elixir.

  • 20

    Episode 20 Run Time 16:14

    Flash Messaging Free

    Often, you'll want to send a quick notification to the user, when they perform some kind of action in your application. "Good job, your task has been created." Or: "You are now logged out." So it seems that we need a way to store things in the session for just a single request. Let me show you some clean ways to handle this!

  • 21

    Episode 21 Run Time 12:17

    Many to Many Relations (With Tags) Free

    So far, you've learned about a few important Eloquent relationships. But, there's more! Think about how you might respresent the relationship between an article, and a tag. Hmm... let's figure it out in this episode. In the process, we'll discuss many to many relationships, pivot tables, and more.

  • 22

    Episode 22 Run Time 13:27

    Selecting Tags From the UI Free

    Now that you understand the basics of many-to-many relationships, how can we orchestrate all of this from our UI? Or, in other words, how do we allow the user to modify which tags are associated with their articles?

  • 23

    Episode 23 Run Time 7:35

    Syncing Tags Free

    In the last episode, we concluded with a cliffhanger. How do we sync up the tags for each article? Well, I gave you a hint with that keyword, "sync." Let's review the answer in this episode!

  • 24

    Episode 24 Run Time 13:13

    Enhancing Select Elements Free

    So we've successfully implemented tagging into our app - pretty easily, too! But, if we're honest, it's not too user-friendly. Why don't we take a short recess from discussing the Laravel core, and instead enhance the select dropdown with the excellent Select2 plugin. In the process, this will give us a good opportunity to talk a bit more about performance improvements with Laravel Elixir.

  • 25

    Episode 25 Run Time 16:14

    When You Want a View Partial to Always Receive Data Free

    One initial gotcha that you'll encounter, when building your first Laravel app, is the need to always make some variable available to a view or view partial. Do you place the binding in your controller method? Well, what about every other route that loads the view? Certainly, the answer isn't to duplicate these bindings all over the place. Instead, we'll make use of view composers.

  • 26

    Episode 26 Run Time 17:32

    The Service Container Free

    Laravel's service container (also known as the IoC container) takes a bit of time for newcomers to fully understand. However, it's important that you plant your feet and really learn these concepts. They're the bedrock of app development in Laravel.

  • 27

    Episode 27 Run Time 11:02

    Loose Ends and Wrapping Up Free

    There's always more to learn, but, for your introduction to Laravel, we must unfortunately wrap things up. In this video, we'll take care of any remaining loose ends, while finishing up with a quick review of what you can expect in "Intermediate Laravel," coming March, 2015.