laravel-learn-bbs/app/Policies/Policy.php
2018-01-01 12:00:45 +08:00

23 lines
323 B
PHP

<?php
namespace App\Policies;
use Illuminate\Auth\Access\HandlesAuthorization;
class Policy
{
use HandlesAuthorization;
public function __construct()
{
//
}
public function before($user, $ability)
{
// if ($user->isSuperAdmin()) {
// return true;
// }
}
}