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