Answers for "laravel response cache"

PHP
0

clear laravel cache

php artisan view:clear 
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan optimize
Posted by: Guest on February-23-2021
0

laravel cache remember

public function index() {
        $minutes = 1440; # 1 day
        $posts = Cache::remember('posts', $minutes, function () {
            return Post::get();
        });
        return $posts;
    }
Posted by: Guest on July-06-2021
0

laravel cache

public function index() {
        $minutes = 1440; # 1 day
        $posts = Cache::remember('posts', $minutes, function () {
            return Post::get();
        });
        return $posts;
    }
Posted by: Guest on November-24-2020

Browse Popular Code Answers by Language