When you want to rollback a set of database operations if one of them fails, you can execute them within a database transaction.
Laravel provides several techniques to do this.
One of them, that I...
Sometimes, you may end up with a collection that contains null values.
Removing those null values from the collection can be done very smoothly with the filter...
Notifications in Laravel are typically used to notify users in your application.
Users do not have to be the App\Models\User model, but can be any model that includes the...
When working with Laravel, you will probably use the query builder in order to create and run database queries.
Sometimes you want to see the raw SQL output of a query, for example when you are...