How-to articles, tricks, and solutions about LARAVEL-5
Get environment value in controller
To get an environment value in a PHP controller, you can use the getenv function.
How to delete multiple records using Laravel Eloquent
You can use the destroy() method in Laravel Eloquent to delete multiple records.
How to get client IP address in Laravel 5+
In Laravel, you can get the client's IP address by using the Request facade's ip method.
How to get Current Timestamp from Carbon in Laravel 5
You can use the now() method from the Carbon class to get the current timestamp in Laravel.
How to Get the Query Executed in Laravel 5? DB::getQueryLog() Returning Empty Array
To get the query executed in Laravel 5, you can use the DB::getQueryLog() method.
laravel - get parameters from http request
In Laravel, you can use the $request object to access parameters from an HTTP request.
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.3 multiple file uploads
In Laravel 5.3, you can use the Request object's file method to handle multiple file uploads.
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.