Skip to content
Learn at your own pace

Learn Laravel

Use Laravel to turn PHP fundamentals into web applications with routes, validation, database models and tests.

Students assemble a modular house from reusable pieces, alongside a laptop showing the same structure.
Build something bigger from reusable parts.
24lessons in 6 stages
48practice exercises
24project milestones
96quiz questions
96review cards

A clear place to start

Laravel provides an organized way to build PHP web applications. Routes select a handler, controllers coordinate work, and models connect application data to storage.

What you need first

First learn PHP variables, functions, classes, arrays, and Composer. Understand an HTML form and the basic purpose of SQL tables and HTTP requests.

Start with these ideas

  1. Follow one request from its URL through a route, controller, and response before introducing more layers.
  2. A migration describes a database schema change. An Eloquent model represents stored records and their relationships.
  3. Validation checks submitted values. A policy checks whether the current user may perform an action on a particular record.

Connect it to a real project

Build a private bookmark manager: list and create bookmarks, validate URLs, enforce ownership, then add jobs and tests.

Study one concept at a time. Explain its everyday example in your own words, predict the worked example’s result, then try a small change. Use practice and quiz feedback to decide what to revisit. You can spread a lesson across several study sessions.

Set up your environment Tools, setup steps, and completion requirements

Start with the ideas above, then set up the tools below. Return to the starter example whenever a new term feels unfamiliar.

text
php --version
composer --version
# Create a Laravel project using the official installation guide.
# Inside that project:
composer install
cp .env.example .env
php artisan key:generate
php artisan migrate
php artisan test
# Configure a local database and keep .env out of source control.

A free account saves your progress, notes, exercise evidence and spaced review cards. To complete a lesson, score at least 80% on its quiz, finish both exercises and the project checklist, and submit your project link with a reflection. Project evidence is self-reported; use the final portfolio rubrics to seek an independent code review.

Your Laravel learning path

Work through these foundations in order, then bring them together in a project.

24 of 24 lessons · follow the stages in order

Start with a small example

Inside a Laravel application, visiting /hello/Developer returns a JSON response containing a greeting.

// routes/web.php
use Illuminate\Support\Facades\Route;

Route::get('/hello/{name}', function (string $name) {
    return response()->json([
        'message' => "Hello, {$name}!",
    ]);
});

Try it yourself

Move the route logic into a controller method, then add a feature test for the JSON response.

Put it into practice

Build a personal bookmark manager

Practice the full request cycle with a useful CRUD application.

  1. Create a Bookmark model and a migration for its title and URL.
  2. Add listing and creation routes with validated forms.
  3. Scope bookmarks to their owner and authorize edits and deletion.
  4. Test valid submissions, invalid URLs and access to another user’s bookmark.
Keep exploring

Find your next course

Choose a language, build on it with a framework, or explore AI and search.

Showing 6 of 17 courses