You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the discussion in #50619 - when running the php artisan optimize command during deployment in forge, it is unable to find a cache some vendor views that are used in the main app. In this instance, I am using the heroicons that are a part of the blade-kit-ui that come as a dep of filament.
As per the directions in the last issue about this (50619) I removed optimize command and replaced it with the standalone cache commands and it works fine.
It seems to be related to the $this->callAfterResolving call in the Blade Hero Icons package, but I don't have enough time at the moment to look into why it working with caching the views, but not the optimise command.
Steps To Reproduce
The following is a minimal reproduction:
Create a laravel new application
Install filament
Use one of the blade heroicons in an blade view in your main apps resources
Add php artisan optimize to your deployment script
Deployment will fail stating unable to locate class or view component
The text was updated successfully, but these errors were encountered:
We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here?
Laravel Version
12.14.0
PHP Version
8.4.7
Database Driver & Version
MySQL
Description
As per the discussion in #50619 - when running the
php artisan optimize
command during deployment in forge, it is unable to find a cache some vendor views that are used in the main app. In this instance, I am using the heroicons that are a part of the blade-kit-ui that come as a dep of filament.As per the directions in the last issue about this (50619) I removed optimize command and replaced it with the standalone cache commands and it works fine.
It seems to be related to the
$this->callAfterResolving
call in the Blade Hero Icons package, but I don't have enough time at the moment to look into why it working with caching the views, but not the optimise command.Steps To Reproduce
The following is a minimal reproduction:
php artisan optimize
to your deployment scriptThe text was updated successfully, but these errors were encountered: