1
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?

More than 3 years have passed since last update.

Laravelでキャッシュファイルパスを変更する

Posted at

環境

Laravel: 8.x

内容

php artisan optimize などでキャッシュファイルを作成することができるが、デフォルトのパスは、 <project_name>/bootstrap/cache/となっており、それを変更したい場合。

これらのパスは Application.php(例としてConfigファイル) で設定される。

APP_*_CACHE を環境変数に設定すれば良い。(*は適宜実体と置き換える)

1
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
1
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?