protected static function createPermission($name, $slug, $path)
    {
        $permissionModel = config('admin.database.permissions_model');

        $permissionModel::create([
            'name'      => $name,
            'slug'      => $slug,
            'http_path' => '/'.trim($path, '/'),
        ]);
    }
protected static function createPermission($name, $slug, $path)
    {
        $permissionModel = config('admin.database.permissions_model');

        $permissionModel::create([
            'name'      => $name,
            'slug'      => $slug,
            'http_path' => '/'.trim($path, '/'),
        ]);
    }
protected static function createPermission ( $ name , $ slug , $ path ) { $ permissionModel = config ( 'admin.database.permissions_model' ) ; $ permissionModel :: create ( [ 'name' => $ name , 'slug' => $ slug , 'http_path' => '/' . trim ( $ path , '/' ) , ] ) ; }
Create a permission for this extension.

@param $name
@param $slug
@param $path
Create a permission for this extension .