How-to articles, tricks, and solutions about LARAVEL
Laravel - Using (:any?) wildcard for ALL routes?
In Laravel, you can use the (:any?) wildcard to match any URI for a specific route.
Laravel 5 – Clear Cache in Shared Hosting Server
To clear the cache in Laravel 5, you can use the php artisan cache:clear command.
Laravel 5 Clear Views Cache
To clear the cache for your views in Laravel 5, you can use the view:clear Artisan command.
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 back button
In Laravel, you can use the back function to redirect the user to their previous page.
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.
Laravel Eloquent Sum of relation's column
You can use the sum method on an Eloquent relation to get the sum of a column's values.