Himanshu SharmaSoftware engineer
Let’s talk

Beginner to intermediate · 40 lessons

Laravel for beginners

A free Laravel course for people who know basic PHP and OOP. Learn routing, Blade, Eloquent, validation, authentication, APIs, queues and testing by building one bookshop app, with every command run on a real install.

Syllabus

Getting started

  1. What Laravel is and what you need to run it10 min
  2. Installing Laravel with Composer or the installer12 min
  3. A tour of a fresh Laravel project12 min
  4. Artisan: Laravel's command line12 min

Configuration and routing

  1. Laravel configuration and the .env file12 min
  2. Laravel routing basics12 min
  3. Route parameters, names and groups12 min
  4. Laravel controllers13 min
  5. Laravel requests and responses13 min

Views, forms and validation

  1. Blade templates: output, conditions and loops14 min
  2. Blade layouts and components14 min
  3. Laravel forms and CSRF protection14 min
  4. Validating input in Laravel14 min
  5. Form request classes12 min

Database and migrations

  1. Connecting Laravel to SQLite12 min
  2. Laravel migrations14 min

Eloquent

  1. Eloquent models14 min
  2. Eloquent queries and CRUD15 min
  3. Eloquent relationships15 min
  4. Pagination and query scopes14 min
  5. Model factories13 min
  6. Database seeders13 min

Users and access

  1. Authentication in Laravel: starter kits or manual13 min
  2. Building login and registration by hand15 min
  3. Laravel middleware14 min
  4. Authorization with gates and policies15 min

State, files and APIs

  1. Sessions, flash messages and cookies in Laravel14 min
  2. File uploads and the storage disk16 min
  3. JSON APIs and API resources15 min
  4. API authentication with Sanctum tokens15 min

Background work and caching

  1. Queues and jobs in Laravel14 min
  2. Events and listeners in Laravel13 min
  3. Sending mail from Laravel14 min
  4. Caching in Laravel13 min

Testing and errors

  1. Testing Laravel apps: the basics14 min
  2. Feature tests with a database and signed-in users16 min
  3. Laravel error handling and logging15 min

Security, shipping and the project

  1. Laravel security basics15 min
  2. A Laravel deployment checklist15 min
  3. Project: finishing the Pagelane Books app18 min