How-to articles, tricks, and solutions about ELOQUENT
How to alias a table in Laravel Eloquent queries (or using Query Builder)?
To alias a table in a Laravel Eloquent query, you can use the as method on a DB facade.
How to delete multiple records using Laravel Eloquent
You can use the destroy() method in Laravel Eloquent to delete multiple records.
Laravel 5.2 - pluck() method returns array
The pluck method is used to retrieve a list of a single column from a database table.
Laravel Check If Related Model Exists
In Laravel, you can use the exists method on a relationship to check if it has any related models.