Last updated on October 18, 2026

Laravel Tutorial for Beginners (Laravel 13)

Arlind Musliu cofounder at Lucky Media
Arlind Musliu

May 3, 2024 Β· 10 min read

Laravel Tutorial for Beginners, Learn Laravel Step by Step

This free Laravel tutorial takes you from zero to a working web application with Laravel 13, the current major version, released on March 17, 2026. It is a series of 31 step-by-step lessons. Each lesson builds on the last and covers one concept you will use in a real project, from routing and Eloquent to queues, APIs and tests.

We wrote the series for PHP developers who are new to Laravel and for developers who are switching from another stack. Every lesson uses practical examples that you can copy, run and change. All code examples have been updated for Laravel 13.

Laravel 13 at a Glance

Here are the facts you need before you install anything, taken from the official Laravel 13 release notes.

Item

Laravel 13

Release date

March 17, 2026

Supported PHP versions

PHP 8.3 to 8.5 (8.3 is the minimum)

Bug fixes until

Q3 2027

Security fixes until

March 17, 2028

Default database

SQLite, created for you when you install

Official starter kits

React, Svelte, Vue and Livewire

Release cycle

One major version each year, around Q1

What is Laravel?

Laravel is a modern PHP framework used for web application development. It follows the Model-View-Controller (MVC) architectural pattern and is designed for ease of use, maintainability, and performance.

Laravel gives you routing, a database layer, authentication, queues, email, and testing tools out of the box. That makes it a good fit for custom websites, online stores, RESTful APIs for mobile apps, internal tools and SaaS products, from small projects to large enterprise applications.

laravel best framework php

What You Need Before Starting

You do not need to be a PHP expert, but you need the basics. Make sure you are comfortable with PHP variables, arrays, functions, and object-oriented basics such as classes and methods. If you are starting from zero, the free PHP Fundamentals course from the Laravel team (10 short video lessons) is a good first step.

Your machine needs four tools:

  • PHP 8.3 or newer. Laravel 13 does not run on older PHP versions.

  • Composer, the PHP package manager.

  • The Laravel installer, which creates new projects with the laravel new command.

  • Node and npm (or Bun), to compile your CSS and JavaScript with Vite.

The fastest way to get all of them is Laravel Herd on Mac or Windows, or the one-line php.new script on Mac, Windows or Linux. The first lesson in this series walks through the full setup.

How to Install Laravel 13

If you already have PHP and Composer, follow these four steps from the official installation guide.

Step 1: Install the Laravel installer

composer global require laravel/installer

Step 2: Create a new application

laravel new example-app

The installer asks which starter kit you want. Pick "None" if you want to learn the framework from the ground up, as this series does.

Step 3: Install frontend packages and start the dev server

cd example-app
npm install && npm run build
composer run dev

The composer run dev command starts the Laravel development server, a queue worker and the Vite development server in one terminal.

Step 4: Open your app

Open http://localhost:8000 in your browser. Laravel 13 uses SQLite by default and runs the first migrations for you, so you already have a working database. To use MySQL or PostgreSQL, change the DB_ variables in your .env file and run php artisan migrate.

You may see composer create-project laravel/laravel in older tutorials. The official docs now use the Laravel installer.

Install Laravel for MacOS and Windows

We explain every tool and every setting for Mac and Windows in Laravel for Beginners: Installing on MacOS and Windows.

Your Laravel Learning Path, Step by Step

Work through the lessons in this order. Each stage adds one layer on top of the last, so you always build on code you already understand. The series explains each concept based on the latest Laravel 13 version.

Stage 1: Foundations

  • Installation on MacOS and Windows - Set up PHP, Composer and your local development environment.

  • The MVC Pattern - Learn how the Model (data), the View (presentation) and the Controller (logic) split your application into three connected parts.

  • Routing - Send each URL to the right controller or view.

  • Blade and Breeze - Build pages with Blade templates, components and slots.

  • Collections - Map, filter and sort data with readable, chainable methods. You will love these!

Stage 2: Databases and Eloquent

Stage 3: Forms, Users and Access Control

Stage 4: Background Work and Notifications

  • Events and Listeners - React to actions in your app, such as a new sign-up, without tangling your code.

  • Queues - Move slow tasks to background jobs so your pages stay fast.

  • Task Scheduling - Replace many cron entries with one schedule written in PHP.

  • Sending Emails - Send notifications and rich emails through a fluent API that supports many mail services.

  • Localization - Translate your app with language files for a global audience.

Stage 5: Build an API

Stage 6: Structure, Testing and Debugging

Stage 7: Ship a SaaS

Laravel 13 Starter Kits

A starter kit gives you login, registration, password reset and email verification on day one. When you run laravel new, the installer asks which kit you want. Laravel 13 has four official starter kits:

Starter kit

Frontend stack

Good fit for

React

React 19, TypeScript, Tailwind and shadcn/ui, through Inertia

Teams that already use React

Svelte

Svelte 5, TypeScript, Tailwind and shadcn-svelte, through Inertia

Teams that already use Svelte

Vue

Vue 3 Composition API, TypeScript, Tailwind and shadcn-vue, through Inertia

Teams that already use Vue

Livewire

Livewire 4, Tailwind and Flux UI

PHP developers who want reactive pages without a JavaScript framework

All four kits use Laravel Fortify for authentication. Each kit also has a WorkOS AuthKit option that adds social login, passkeys and SSO.

Breeze and Jetstream are not in the Laravel 13 starter kit list. Our Blade and Breeze lesson is still worth your time, because it teaches Blade templates, components and slots, which every Laravel developer uses. Our team did the initial work on a React port of Breeze, and Taylor Otwell, the creator of Laravel, thanked us for it in public.

If you are new to Laravel, start with no starter kit, or with the Livewire kit, so you learn PHP and Blade first. Pick React, Svelte or Vue when you already know that frontend framework.

What's New in Laravel 13 for Beginners

Laravel 13 is a small upgrade with few breaking changes, so the concepts in this series still apply. These are the changes you will notice as a beginner:

  • PHP 8.3 minimum. Check your version with php -v before you install.

  • Laravel AI SDK. One API for text generation, tool-calling agents, embeddings, images and audio.

  • JSON:API resources. First-party API responses that follow the JSON:API spec. They are a good next step after our API Resources lesson.

  • Request forgery protection. The CSRF middleware is now called PreventRequestForgery, and it also checks where each request comes from. Our CSRF lesson explains the basics.

  • Queue routing. Set the queue and connection for each job class in one place with Queue::route().

  • More PHP attributes. For example, #[Middleware] and #[Authorize] on controllers, and #[Tries] and #[Timeout] on queued jobs.

You can read the full list in the Laravel 13 release notes.

What You'll Be Able to Build

By the end of this series you will have the foundations to build:

  • REST APIs consumed by mobile apps or frontend frameworks like React and Vue

  • Full-stack web applications with authentication, roles, permissions, and queued background jobs

  • Internal tools and admin dashboards using Blade templates and starter kits

  • SaaS applications with scheduled tasks, email notifications, and Stripe billing via Laravel Spark

Is Laravel Hard to Learn?

If you know basic PHP, Laravel has a gentle learning curve. The framework is designed to be readable: Eloquent queries, Blade templates, and route definitions all read almost like plain English. Most developers build their first working Laravel app within a few days of starting.

Laravel also has some of the best documentation of any web framework. This series is structured to teach concepts in the order you encounter them in a real project, so each post builds directly on the last.

How Long Does It Take to Learn Laravel?

With consistent practice, a few hours per week, most developers get comfortable with the core concepts in 4 to 6 weeks. Working through the seven stages above in order, with hands-on coding alongside each post, is a realistic path to get there. Laravel's large community and excellent official docs mean you are never far from an answer when you get stuck.

Free Resources to Use Alongside This Series

  • Laravel Learn - Two free official video courses: Getting Started with Laravel (13 lessons, about 120 minutes) and PHP Fundamentals (10 lessons, about 71 minutes).

  • The official documentation - The reference for every feature in this series.

  • Laracasts - Video tutorials that the Laravel docs point beginners to.

  • Laravel Boost - If you code with an AI agent such as Cursor or Claude Code, Boost gives the agent Laravel docs that match the package versions in your project.

Conclusion

Install Laravel 13, then follow the seven stages in order. By the end of Stage 3 you can build a full application with users and permissions. By the end of Stage 5 you can power a React, Vue or mobile frontend with your own Laravel API.

Frequently Asked Questions

Is Laravel free to use?

Yes. Laravel is open-source and completely free. You only pay for hosting and any optional paid packages you choose to add, such as Laravel Nova or Laravel Spark.

Do I need to know PHP before learning Laravel?

Basic PHP knowledge is recommended: variables, arrays, functions, and a grasp of object-oriented programming. You do not need to be advanced. If you are starting from zero, take the free PHP Fundamentals course on laravel.com/learn first, then come back to this series.

What is Laravel used for?

Laravel is used to build web applications, REST APIs, e-commerce platforms, SaaS products, and internal tools. It suits almost any server-side web project, from small prototypes to large enterprise applications. Our team has built in Laravel since 2014, from healthcare ERPs to hosting platforms.

Is PHP Laravel outdated?

No. Laravel ships a new major version every year. Laravel 13 came out on March 17, 2026, gets security fixes until March 17, 2028, and adds first-party AI tools such as the Laravel AI SDK and vector search.

Which IDE is best for Laravel?

PhpStorm has the deepest built-in Laravel support, with smart completion for Eloquent models, routes, views and Blade. VS Code or Cursor with the official Laravel extension is a free, lighter option that adds Artisan commands, snippets and Laravel-aware completions.

What is the difference between Laravel 12 and Laravel 13?

Laravel 13 needs PHP 8.3 or newer, while Laravel 12 also runs on PHP 8.2. Laravel 13 adds the Laravel AI SDK, JSON:API resources, queue routing and more PHP attributes, with few breaking changes. Laravel 12 bug fixes ended on August 13, 2026, and its security fixes end on February 24, 2027.


Bring Your Ideas to Life πŸš€

Need help with a Laravel project? Our Laravel development team has built in Laravel since 2014. Let's get in touch.

Lucky Media is proud to be recognized as a leading Laravel Development Agency

Technologies

Laravel
Arlind Musliu cofounder at Lucky Media
Arlind Musliu

Cofounder and CFO of Lucky Media

Stay up-to-date

Be updated with all news, products and tips we share!

Let’s chat

We partner with a limited number of brands each quarter to ensure senior-level attention on every project.

Teamwork