-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Install - 405 on Login #23
Comments
The correct route should be
|
I think the issue is the env variable is not available. |
@budirec So how would you solve this? |
For now what I do is hardcode /api in https://github.com/tuandm/laravue/blob/master/resources/js/utils/request.js#L7 But I think there should be better way to fix this, and need to investigate why the env var is not feed to the js |
That setting is on your .env, please check example in https://github.com/tuandm/laravue/blob/master/.env.example
This
Detail here: https://laravel.com/docs/5.8/mix#environment-variables |
yeah, I have that in my .env but it wasn't available in the js file ` MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" |
I had the same problem. I hope to work for you. |
Changing .env required |
On first install (after key gen and config:cache):
php artisan:serve
Attempting to login via default credentials results in a 405 error.
Route: /auth/login
The text was updated successfully, but these errors were encountered: