Laravel 5 show ErrorException file_put_contents failed to open stream: No such file or directory

后端 未结 20 2357
北海茫月
北海茫月 2020-12-04 17:26

I have a project on Laravel 5 and I work with it at the office and at home too. It works fine, but recently at home it stopped working. Laravel show me two ErrorException

20条回答
  •  伪装坚强ぢ
    2020-12-04 18:00

    The best way to solve this problem is, go to directory laravel/bootstrap/cache and delete all files from cache.

    To do this, run the following Artisan commands on your command line
    1. php artisan config:clear
    2. php artisan cache:clear
    3. php artisan config:cache

    In your panel or server, you can execute commands by adding the following to your routes:

        Route::get('/clear-cache', function() {
            $run = Artisan::call('config:clear');
            $run = Artisan::call('cache:clear');
            $run = Artisan::call('config:cache');
            return 'FINISHED';  
        });
    

    And then call the www.yourdomain.com/clear-cache route from your browser.

提交回复
热议问题