After installing my project using Laravel Deployer in production server, I cannot perform a login.
The response code of the /auth/login endpoint is 301 Moved Permanently. Locally it works pretty well.
In production I'm in a third-level domain, and I've removed the /admin prefix from the configuration.
I've also tried creating a different account using the artisan command but it keeps redirecting me over the login page.
I solved by changing the https configuration in admin.php
/*
|--------------------------------------------------------------------------
| Access via `https`
|--------------------------------------------------------------------------
|
| If your page is going to be accessed via https, set it to `true`.
|
*/
'https' => env('ADMIN_HTTPS', true),
Same it happened when I deployed to live but then I also needed to reset my config files with:
php artisan config:clear and then php artisan config:cache. Rookie mistake on my part.
Most helpful comment
I solved by changing the https configuration in admin.php