Explorer
home
/
zoteqbgb
/
public_html
/
vendor
/
spatie
/
laravel-permission
/
src
/
Contracts
Location:
/home/zoteqbgb/public_html/vendor/spatie/laravel-permission/src/Contracts
Root path:
/home/zoteqbgb/public_html/config/676626
Editing: Role.php
<?php namespace Spatie\Permission\Contracts; use Illuminate\Database\Eloquent\Relations\BelongsToMany; interface Role { /** * A role may be given various permissions. */ public function permissions(): BelongsToMany; /** * Find a role by its name and guard name. * * @param string|null $guardName * * @throws \Spatie\Permission\Exceptions\RoleDoesNotExist */ public static function findByName(string $name, $guardName): self; /** * Find a role by its id and guard name. * * @param string|null $guardName * * @throws \Spatie\Permission\Exceptions\RoleDoesNotExist */ public static function findById(int $id, $guardName): self; /** * Find or create a role by its name and guard name. * * @param string|null $guardName */ public static function findOrCreate(string $name, $guardName): self; /** * Determine if the user may perform the given permission. * * @param string|\Spatie\Permission\Contracts\Permission $permission */ public function hasPermissionTo($permission): bool; }
Save maftirs
Upload
Start Upload
New File
Create File
New Folder
Create Folder
Directory Contents
Name
Size
Perms
Modified
Actions
Permission.php
920 bytes
0644
2023-10-25 10:12
âï¸
ðï¸
Rename
Role.php
1,141 bytes
0644
2023-10-25 10:12
âï¸
ðï¸
Rename
Wildcard.php
178 bytes
0644
2023-10-25 10:12
âï¸
ðï¸
Rename
Chang
Apply