I am using Windows 7, PhpStorm 2018.1.3 and Laravel 5.6.
I have installed spatie/laravel-permission and I would like to add the following Blade directives in PhpStorm:
https://github.com/spatie/laravel-permission#using-blade-directives
For example:
@role('writer')
I am not a writer...
@endrole
and:
@hasallroles($collectionOfRoles)
...
@endhasanyrole
So:
- I go to:
File / Settings / Languages & Frameworks / Blade / Directives - Click on
+(Add directive) button - Enter
Name - check
has parameter
... and now what? What should I enter in Prefix and Suffix fields for these particular cases (@role('writer') and @hasallroles($collectionOfRoles))?