Skip to main content

All Tutorials

In-depth Laravel tutorials covering advanced topics, real-world examples, and best practices.

Tutorial Free

7 Laravel Functions That ALSO Accept Array Parameter

Laravel has many functions that we use with a single parameter, but they also accept an array of values. In this tutorial, I will show the most widely used ones.

Tutorial Premium

Laravel: Import Very Large CSV With Jobs and Queues

Have you ever tried to import 1 million rows from CSV into the DB? It's a tricky task that can end up with performance issues, timeouts, or just running out of server resources. In this tutorial, I will show you one way of handling this with Jobs and Queues.

Tutorial Free

Add the First Admin User to Live Laravel Site: Two Ways

Adding an admin user to a production site is one of the most common things done when you deploy your Laravel project to the server for the first time. In this tutorial, I will show you two ways to do that.

Tutorial Free

Laravel Unique Validation for Multiple Columns

Laravel Validation already has a [Unique](https://laravel.com/docs/validation#rule-unique) rule to check if some record exists in the database. But what if you want a combination of TWO fields to be unique? Let me demonstrate.

Tutorial Free

Set Laravel User Locale in Middleware

To set the global Laravel language (locale), you need to use the `app()->setLocale()` method. But the question is: where to put this method if you want to set the locale based on a DB field like `users.language`?

Tutorial Free

How To Install Older Laravel Version

Sometimes, when starting a new Laravel project, you can't use the latest version. For example, when the PHP version on your server is lower than required by Laravel. What to do?

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.