Answers for "how to config cache in laravel 8"

PHP
0

laravel disable config cache

php artisan cache:clear - Flush the application cache

php artisan config:cache - Create a cache file for faster configuration loading. This is for configuration cache. This command will clear the configuration cache before it creates. More details

php artisan config:clear - Remove the configuration cache file
Posted by: Guest on May-21-2020
0

laravel cache

// i am using laravel versioin 8  so...... 
// use this in ur controller then
use Illuminate\Support\Facades\Cache;
// in function 
Cache::put('key', 'value', 1440);// 1 day
Cache::get('key');
Cache::has('key');
Cache::pull('key');
Cache::forget('key');// remove spacific
Cache::flush(); // remove  all
Posted by: Guest on April-14-2022

Browse Popular Code Answers by Language