Laravel Tutorials

Tutorials on everything from getting started with Laravel, to expert topics, and everything in between.

Join the Mastering Laravel community to level up your skills and get trusted advice.

Visit Mastering Laravel
Prepare your Laravel app for the cloud image

Prepare your Laravel app for the cloud

Take your Laravel app to new heights by deploying it to the cloud.

Read article
How to  Build Your First PHP Package image

How to Build Your First PHP Package

If you're new to PHP and you want to create a PHP package from scratch, let's dive in together see how it's done!

Read article
Laravel Model Tips image

Laravel Model Tips

Let's look at some of my favorite tips for working with Laravel models

Read article
Learn how to create custom Facades in Laravel image

Learn how to create custom Facades in Laravel

If Facades have ever confused you as someone new to Laravel, come along with me and learn how to identify the service behind ANY Facade you might see...

Read article
A guide to Laravel's model events image

A guide to Laravel's model events

Look at what model events are and how to use them in your Laravel application. We'll also look at how to test your model events and some of the gotcha...

Read article
API Versioning in Laravel 11 image

API Versioning in Laravel 11

Learn how to version your API in a new Laravel 11 project using the updated application skeleton.

Read article
How to Migrate MySQL from DBngin to Laravel Herd image

How to Migrate MySQL from DBngin to Laravel Herd

Learn how to migrate your DBngin MySQL databases to Laravel Herd

Read article
Learn to master Query Scopes in Laravel image

Learn to master Query Scopes in Laravel

In this article, we're going to take a look at local query scopes and global query scopes

Read article
How to Redirect Uppercase URLs to Lowercase with Laravel Middleware image

How to Redirect Uppercase URLs to Lowercase with Laravel Middleware

Learn how to redirect all requests that contain uppercase letters to their lowercase equivalents for SEO optimization.

Read article
Adding Real Time Chat to Laravel Using Reverb & Vue image

Adding Real Time Chat to Laravel Using Reverb & Vue

Learn to add real time chat to your Laravel apps using Reverb & Vue 3

Read article
Running a Single Test, Skipping Tests, and Other Tips and Tricks image

Running a Single Test, Skipping Tests, and Other Tips and Tricks

Inspired by Pest creator Nuno Maduro's post about the ->only() method in PestPHP, I've collected tips and tricks for PHP developers to efficiently iso...

Read article
Using Eloquent Factories With PHPUnit Data Providers image

Using Eloquent Factories With PHPUnit Data Providers

Using data providers with feature tests can pose a problem because they run before Laravel is bootstrapped. Let's look at how to use Eloquent factorie...

Read article
The ultimate guide to Laravel Validation image

The ultimate guide to Laravel Validation

Validation is an important part of any web application. It can help to prevent security vulnerabilities, data corruption, and a whole host of other is...

Read article
Configuring Laravel With Additional Environment Files image

Configuring Laravel With Additional Environment Files

In Laravel, you can configure additional environment files that will load instead of the `.env` file. Let's look at how to do this, with some practica...

Read article
Asserting Exceptions in Laravel Tests image

Asserting Exceptions in Laravel Tests

Learn how to test expected exceptions, fake Laravel's exception handling, and use Laravel's Exceptions facade to assert exceptions in HTTP tests.

Read article
LaraJobs logo

LaraJobs

The official Laravel job board

LaraJobs
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce
Rector logo

Rector

Your partner for seamless Laravel upgrades, cutting costs, and accelerating innovation for successful companies

Rector
MongoDB logo

MongoDB

Enhance your PHP applications with the powerful integration of MongoDB and Laravel, empowering developers to build applications with ease and efficiency. Support transactional, search, analytics and mobile use cases while using the familiar Eloquent APIs. Discover how MongoDB's flexible, modern database can transform your Laravel applications.

MongoDB
Laravel Forge logo

Laravel Forge

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Forge
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift