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

チートシート

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

Description

アプリケーションのすべてのBladeテンプレートをコンパイルします。

Usage

php artisan view:cache

Options

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

Example

php artisan view:cache
   INFO  Blade templates cached successfully.  

Stub

OptionStub file name

Source

10.x

framework/src/Illuminate/Foundation/Console/ViewCacheCommand.php at 11.x · laravel/framework
Laravel is a web application framework with expressive, elegant syntax. - laravel/framework

11.x

framework/src/Illuminate/Foundation/Console/ViewCacheCommand.php at 11.x · laravel/framework
Laravel is a web application framework with expressive, elegant syntax. - laravel/framework
タイトルとURLをコピーしました