sa-arash / rolehelper
If you need to change the main text of your rolls, then this package will help you
v1
2024-02-01 10:41 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
If you need to change the main text of your rols, then this package will help you
STEP 1 :
composer require sa-arash/rolehelper
STEP 2 : add PROVIDERS and FACADES in config/app.php
'providers' => ServiceProvider::defaultProviders()->merge([
......
SaArash\Rolehelper\roleHelperProvider::class,
])->toArray(),
'aliases' => Facade::defaultAliases()->merge([
......
'RoleHelper'=> SaArash\Rolehelper\Facades\roleFacad::class,
])->toArray(),
STEP 3 :
php artisan vendor:publish --tag=RoleHelper
Now you can define your role in config/roleHelper.php and use this :
{{ RoleHelper::convert($role) }}