Support the ongoing development of Laravel.io →
posted 6 years ago

Hi, doing these steps in my valet environment:

  • composer create-project --prefer-dist laravel/laravel <project>
  • php artisan migrate
  • composer require encore/laravel-admin
  • php artisan vendor:publish --provider="Encore\Admin\AdminServiceProvider"
  • php artisan admin:install

everything is perfect. Doing the same steps on the server where the production will be, I cannot login. After some debugging, I found the middleware Authenticate: here, inside the function

public function handle($request, Closure $next)

this:

return $next($request);

in my valet returns the redirect to the admin dashboard, on the production server back to the login form. How to debug further? What can be different in the two environments?

Thanks a lot

Last updated 2 years ago.
0

Try to clear your configs in production

php artisan config:clear

P.S. I supposed you have configured .env file

0

Sign in to participate in this thread!

Eventy

Your banner here too?

andrea giorg Joined 13 Sep 2018

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.