Require this package with Composer
"require": {
...
"ftl/tbe": "^1.0-dev"
},
"repositories": [
...
{
"type": "vcs",
"url": "https://github.com/FullyTemplatedLaravel/TwigBridgeExtentions"
}
]
Open up config/twigbridge.php and find the enabled key at extensions, and add 'FTL\TBE\EntrustExtension', to the end:
'extensions' => [
'enabled' => [
...
'FTL\TBE\EntrustExtension',
],
],
Add functions role(), permission(), ability()
Add functions n_info(), n_success(), n_warning(), n_danger(), n_error() NotificationsExtension based on Laravel Convenient System Notifications