【Laravel】artisanのroute:cacheコマンドを解説

チートシート

Laravel 10.x以降のartisanの「route:cache」コマンドを解説します。

Description

ルート登録を高速化するためのルートキャッシュファイル(bootstrap/cache/routes-v7.php)を作成します。

Usage

php artisan route:cache

Options

オプションはありません。

Example

no options

php artisan route:cache
   INFO  Routes cached successfully.  

Source

10.x

framework/src/Illuminate/Foundation/Console/RouteCacheCommand.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/RouteCacheCommand.php at 11.x · laravel/framework
The Laravel Framework. Contribute to laravel/framework development by creating an account on GitHub.

コメント

タイトルとURLをコピーしました