Laravel 10.x以降のartisanの「config:cache」コマンドを解説します。
Description
設定の読み込みを高速化するためのキャッシュファイル(bootstrap/cache/config.php)を作成します。
本番環境でのパフォーマンス向上のために使用します。
Usage
php artisan config:cache
Options
オプションはありません。
Example
no options
php artisan config:cache
INFO Configuration cached successfully.
コメント