Support the ongoing development of Laravel.io →
Installation
Last updated 2 years ago.
0

Hi,

I'm facing the same kind of issue.

I have a set of routes which are verified by Entrust in my routes.php file:

// only admin will have access to routes under admin prefix Entrust::routeNeedsRole('admin*', 'admin');

It works perfectly locally but doesn't work on my forge production server.

I get this, since I moved to Laravel 5.1:

[...]

HttpException in Application.php line 839:

  1. in Application.php line 839
  2. at Application->abort('403') in Entrust.php line 96
  3. at Entrust->Zizaco\Entrust{closure}(object(Route), object(Request))

[...]

It must be related to Zizaco\Entrust but the weird thing is that it just works on my homestead VM.

Note: before I upgraded to 5.1, my error was on the exact same line as yours : 'HttpException in Application.php line 904'

I might not be that related though. Does any experienced user have a clue?

Thanks!

0

me too.

0

@naimkhalifa You should set last parameter to false. i guess it ll be helpful https://github.com/Zizaco/entrust/issues/66

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.

© 2024 Laravel.io - All rights reserved.