0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Laravel】 optimize:clear の違いまとめ(5.5〜12対応)

0
Posted at

Laravelのバージョンによって
optimize:clear の有無が違うので注意。

Laravelバージョン optimize:clear
5.5〜5.7 ❌ なし
5.8以上 ✅ あり

Laravel 5.5系(5.7以前)

❌ optimize:clear は存在しない

代わりに個別で実行する。

php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear

Laravel 5.8以降(6〜12含む)

✅ optimize:clear が使用可能

php artisan optimize:clear

Laravelバージョン確認方法

php artisan --version

# または
# cat composer.json | grep laravel/framework
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?