Laravel 10.xのartisanの「optimize:clear」コマンドを解説します。
Description
キャッシュされたブートストラップファイルを削除します。
実体は以下コマンドを実行しています。
- event:clear
- view:clear
- cache:clear
- route:clear
- config:clear
- clear-compiled
Usage
php artisan optimize:clear
Options
オプションはありません。
Example
no options
php artisan optimize:clear
INFO Clearing cached bootstrap files.
events .................................................................................................................................. 2ms DONE
views .................................................................................................................................. 49ms DONE
cache .................................................................................................................................. 30ms DONE
route ................................................................................................................................... 1ms DONE
config .................................................................................................................................. 1ms DONE
compiled ................................................................................................................................ 2ms DONE
Source
10.x
framework/src/Illuminate/Foundation/Console/OptimizeClearCommand.php at 11.x · laravel/framework
The Laravel Framework. Contribute to laravel/framework development by creating an account on GitHub.
11.x
framework/src/Illuminate/Foundation/Console/OptimizeClearCommand.php at 11.x · laravel/framework
The Laravel Framework. Contribute to laravel/framework development by creating an account on GitHub.
コメント