Laravel-Backpack / PermissionManager

Admin interface for managing users, roles, permissions, using Backpack CRUD
http://backpackforlaravel.com
Other
527 stars 168 forks source link

Target class [hash] does not exist. #313

Closed cod3rshotout closed 1 year ago

cod3rshotout commented 2 years ago

I added in my controller this code within the constructor:

backpack_user()->hasPermissionTo('administration');

now when I load the page I get:

Target class [hash] does not exist.

check the attachment hash

welcome[bot] commented 2 years ago

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication mediums:

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

-- Justin Case The Backpack Robot

pxpm commented 1 year ago

Hello @cod3rshotout

I cannot help much here, but I think the problem might be on AsiPageCrudController __construct() from the error trace you posted.

I can try to help you more if you could share a flare error page or something that I could have a look.

I am going to close this as I think this is an implementation issue, but I may be wrong, so feel free to re-open or keep the discussion if needed and I will try my best to help.

Cheers