Laravel Migrations: nullable and constrained - in which order?
When creating the foreign key migrations in Laravel, a short syntax is constrained(). With that, it's easy to make one mistake related to Column modifiers.
In-depth Laravel tutorials covering advanced topics, real-world examples, and best practices.
When creating the foreign key migrations in Laravel, a short syntax is constrained(). With that, it's easy to make one mistake related to Column modifiers.
When using seeders, the data is often interconnected: we want to seed some data with related records. Is there a "quick" syntax to do it?
React.js is one of the most popular front-end frameworks, but it lacks examples of how to integrate it with Laravel API. So, in this long article, I will show you how to do it in details, step-by-step.
I'm a big fan of using Soft Deletes functionality for pretty much all Eloquent models. Just in case. Too many times I had clients asking me to restore the "deleted" information. So, how to automate that process a bit?
If you use Gates in the Laravel project for roles/permissions, you can add one condition to override any gates, making a specific user a super-admin. Here's how.
For file uploads, there's a very popular JavaScript library called FilePond. How to use it in Laravel? We'll talk about using it in create/edit forms, previewing the images, and then will try to use tools like Spatie Media Library, Amazon S3 and Livewire.
Quite often, I see Laravel developers using `$request->all()` in Controller methods. It may be a security issue, let me show you why.
In one of the recent Laravel versions, they released an improvement to use the `touch()` method on Query Builder, and not only on Eloquent Model.
In this article, I will show you how to shorten Controllers by using Service classes, and different ways to initialize or inject that Service.
Database transactions are very useful for multiple database operations, and Laravel has functionality for them. But what would be the practical examples of WHEN you should use them?