錯誤訊息
include(C:\laragon\www\fc2020\vendor\composer/../../app/View/Components/Sidebar.php): failed to open stream: No such file or directory
清掉一些無用的 view comoponent controller 後發現出現找不到檔案,但是跑完 view:clear 和 cache:clear 各種 clear 還是沒用,最後複製 stackoverflow 解決
Try php artisan config:cache php artisan config:clear composer dump-autoload -o
可能因為 component 是用 CLI 建的,所以要重跑 composer
https://stackoverflow.com/questions/53203254/failed-to-open-stream-no-such-file-or-directory-laravel