-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blade directives not working #278
Comments
i see the service provider of entrust calls the blade directive different, and had everything in the boot instead of registering it: i don't know enough about boot/register and everything to understand what's happening here, but when i change the way of calling /Blade, it's not working, when i put everything from register to boot, it doesn't work, but if i do both, it works. so when i change your service provider to:
the role directive works. is there something wrong with my setup why you original doesn't work for me? of is there a change in laravel why this change is needed? i see everyone at entrust having problems with the blade directives are advised to replace their serviceprovider, so maybe there's a change in laravel or something? |
The tests seem to point out that the current service provider + directives are working. I suspect something app specific is causing troubles. Could you please try installing the package in a vanilla Laravel app? |
Closing this for now, reopen if this fails for you in a vanilla app. |
Zal morgen ff kijken, koningsdag gevierd vandaag ;) |
Good morning @freekmurze, |
I am moving from Entrust to this one, but also won't execute the code within 'afterRosolving':
Have you fixed this issue @BartHuis ? |
hmm, i don't have any directions yet in my app service provider, so don't think that's the problem here, but we just moved to santigarcor/laratrust, no problems anymore... |
Hi,
After the tweet yesterday, here are my debug actions i tried:
vendor\spatie\laravel-permission\src\PermissionServiceProvider.php:
gives test when loading my page
vendor\spatie\laravel-permission\src\PermissionServiceProvider.php:
does just give
@ROLE('admin')
admin only
@Endrole
as output from the blade
The text was updated successfully, but these errors were encountered: