nWidart / laravel-modules

Module Management In Laravel
https://docs.laravelmodules.com
MIT License
5.5k stars 954 forks source link

Fixed public path for octane setup #1829

Closed korridor closed 5 months ago

korridor commented 5 months ago

The path to build/manifest.json is relative, which works if the executing PHP file is in the public folder. If you use Laravel Octane the executing script is the artisan script which is in the working directory, and so the paths are incorrect.

I fixed this by using the public_path function.