Skip to content

If you need to change the main text of your rolls, then this package will help you

License

Notifications You must be signed in to change notification settings

Sa-arash/RoleHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RoleHelper

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) }}

About

If you need to change the main text of your rolls, then this package will help you

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages