public static function check($permission) { if (Auth::guard('admin')->user()->cannot($permission)) { static::error(); } }