I'm working on a project with an Angular frontend, a Laravel backend. On logging into the laravel page, I've set the LoginController to redirect to my angular page. I saw this in a tutorial on how to link a Laravel backend to an Angular frontend. Please find it at here.
The default LoginController is as follows.
use AuthenticatesUsers;
/**
* Where to redirect users after login.
*
* @var string
*/
protected $redirectTo = '/home';
When I change '/home' to '/app' (which is where my angular frontend code is), the url changes from localhost:8000/login to localhost/app. The expected result is localhost:8000/app/.
Does anyone know how to fix this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire