Skip to content

Commit c1539e9

Browse files
authored
Merge pull request #16 from tklie/main
Add PHPDoc to LaravelEntrustFacade
2 parents a564a23 + 9c23801 commit c1539e9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Facades/LaravelEntrustFacade.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414

1515
use Illuminate\Support\Facades\Facade;
1616

17+
/**
18+
* @method static bool ability(array|string $roles, array|string $permissions, array $options = [])
19+
* @method static bool can(string $permission, bool $requireAll = false)
20+
* @method static bool canAndOwns(string|array $permission, Object $thing, array $options = [])
21+
* @method static bool hasRole(string $role, bool $requireAll = false)
22+
* @method static bool hasRoleAndOwns(string|array $role, Object $thing, array $options = [])
23+
* @method static bool owns(Object $thing, string|null $foreignKeyName = null)
24+
* @method static \Illuminate\Auth\UserInterface|null user()
25+
*/
1726
class LaravelEntrustFacade extends Facade
1827
{
1928
/**
@@ -25,4 +34,4 @@ protected static function getFacadeAccessor()
2534
{
2635
return 'laravel_entrust';
2736
}
28-
}
37+
}

0 commit comments

Comments
 (0)