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.
Filament is a great admin panel system, but it often confuses users how to create a custom non-CRUD page in Filament that wouldn't be a typical Resource? This tutorial will provide an example.
When grouping MySQL results, have you ever seen this error: "Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column..."? In this tutorial, I will show you two ways how to handle it in Laravel.
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.
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.
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.
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.
When validating forms or API requests, sometimes the rule for one field depends on values from other fields. In this tutorial, I will show you 4 different Laravel syntax examples to achieve it.
Have you ever encountered an issue where it says: GET Method is not supported for this route? This is mainly caused by using incorrect methods when submitting a form or inaccurate redirects. Let's take a look at examples and how to fix them.
In this tutorial, we will show how to add permissions to the Laravel application with Vue.js SPA architecture. For the example, we will take a basic CRUD of posts, create two roles (admin and editor), and the editor role will not be able to delete the posts.