Skip to main content

All Tutorials

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

Tutorial Free

Laravel File Uploads: Save Filename in DB with Folder and URL?

When uploading files with Laravel, how to store the filename in the DB? Should you store "filename.png"? Or, include the folder of "avatars/filename.png"? Or, the full path "https://website.com/avatars/filename.png"? Let me tell you my opinion.

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.

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.