27
38

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Laravelのキャッシュを削除する

Last updated at Posted at 2018-01-22

Laravelのキャッシュがうざい

Laravel5.5にしてから、キャッシュの影響でmigrationが上手く行かなかったり、ルーティングエラーが出たりする。

キャッシュクリアコマンド

キャッシュを作り直す

composer dump-autoload
php artisan clear-compiled
php artisan optimize
php artisan config:cache

手動で削除もできる

cacheが残っているエリアは

  • /laravel/bootstrap/cache/
  • /laravel/storage/framework/cache/

各ディレクトリで
rm -rf *.php
を実行すればいい。

※ルートでやらないように注意

参考

27
38
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
27
38

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?