Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
32
Help us understand the problem. What is going on with this article?
@ucan-lab

Laravel キャッシュクリア&最適化

本番環境にデプロイする際に必ずやっておきたいキャッシュクリア&最適化です。

キャッシュクリア&最適化

$ composer install --optimize-autoloader --no-dev
$ php artisan optimize:clear
$ php artisan optimize

補足

--optimize-autoloader オプション

本番環境ではオプション付き、開発環境ではオプションなしで運用します。
このコマンドは下記ファイルを生成します。

vendor/composer/autoload_classmap.php
vendor/composer/autoload_files.php
vendor/composer/autoload_namespaces.php
vendor/composer/autoload_psr4.php
vendor/composer/autoload_real.php

optimize

optimize:clear

参考

32
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ucan-lab
Backend Developer at ROLO. I love PHP and I'm focusing on Laravel, Docker, GraphQL.
yyphp
PHPerが毎週集まり、ざっくばらんに情報交換する雑談コミュニティ

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
32
Help us understand the problem. What is going on with this article?