Blog


May 25, 2021

How to Remove Null Values From a Collection in Laravel

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...

Read

May 14, 2021

Sending Laravel Notifications Without Notifiable

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...

Read

February 11, 2021

Six Ways to Get Raw SQL Output From Query Builder in Laravel

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...

Read

November 25, 2020

How to Split a Collection in Laravel 8

Since Laravel 8.16, it is possible to split a collection into chunks in two different ways. The first one, that already existed, is the split method: This method breaks a collection into a...

Read