Laravel Controller Subfolders Structure: Admin, User, Common Controllers?
We recently received this question below on Laravel Daily Discord. In short: how to structure Controllers? Should it be by roles?
In-depth Laravel tutorials covering advanced topics, real-world examples, and best practices.
We recently received this question below on Laravel Daily Discord. In short: how to structure Controllers? Should it be by roles?
Working with applications that have multiple roles can require you to have a Role Switcher to allow your user to act in a different role. For example, a user can be a doctor but also a patient. In this practical example, we'll add role-switching to our navigation bar to allow this.
I received an email from a person asking for help showing the table of data with dynamic columns. In this tutorial, I will show you exactly how I did it.
Want to change the default Laravel User model to use UUID instead of the default auto-increment ID? Here are the changes you need to make.
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.