This repository was archived by the owner on Feb 7, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Artisan stops working after install #18
Comments
tnylea
added a commit
that referenced
this issue
Oct 31, 2016
Thanks man. Just merged it an put it in the latest version. |
Closed
This was referenced May 15, 2018
Closed
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
After installing voyager.
php artisan voyager:install
If you try to run any command (
php artisan make:model TwitchStream
) it throws an error:Because the voyager config file gets published, it is used every time the app is bootstrapped, so it tries to run the asset() function in the config file which excepts a Request object as the second argument and it crashes.
The solution is simply remove the asset() function from the line:
'assets_path' => asset('/vendor/tcg/voyager/assets'),
To:
'assets_path' => '/vendor/tcg/voyager/assets',
And actually everything works because there is no need to use the function.
I will send a pull request.
The text was updated successfully, but these errors were encountered: