for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanesoft\Auth\Policies;
use Arcanesoft\Contracts\Auth\Models\User;
/**
* Class Policy
*
* @package Arcanesoft\Auth\Policies
* @author ARCANEDEV <[email protected]>
*/
abstract class Policy
{
/* ------------------------------------------------------------------------------------------------
| Main Functions
| ------------------------------------------------------------------------------------------------
* @param \Arcanesoft\Contracts\Auth\Models\User $user
* @param mixed $ability
* @return bool
public function before(User $user, $ability)
$ability
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
if ($user->isAdmin()) return true;
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.