laravel-learn-bbs/app/Policies/Policy.php

23 lines
323 B
PHP
Raw Normal View History

2018-01-01 04:00:45 +00:00
<?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;
// }
}
}