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

Laravelでソースコードを修正しても画面に反映されない時にやるべきこと

0
Last updated at Posted at 2026-02-13

✔ 1. ブラウザキャッシュを疑う
・スーパーリロード (Windows)Ctrl + Shift + R
 JSは特にスーパーリロードしないと画面に反映されないことが多い
・シークレットモードで確認

✔ 2. キャッシュクリアコマンドを使う
・サーバ上のキャッシュファイル削除を試みる

php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear

すべての主要なキャッシュを一括でクリアしたい場合は、以下のコマンドを使用します。

php artisan optimize:clear

【参考】
https://qiita.com/Pechan/items/8d841f5241794af4cc6e
https://qiita.com/miya1221/items/422e4b2923eae19a93d4
https://qiita.com/Ping/items/10ada8d069e13d729701

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