www.gusucode.com > KPPW众包威客PHP开源建站系统 v3.0源码程序 > KPPW/vendor/laravel/framework/src/Illuminate/Auth/Access/HandlesAuthorization.php
<?php namespace Illuminate\Auth\Access; trait HandlesAuthorization { /** * Create a new access response. * * @param string|null $message * @return \Illuminate\Auth\Access\Response */ protected function allow($message = null) { return new Response($message); } /** * Throws an unauthorized exception. * * @param string $message * @return void * * @throws \Illuminate\Auth\Access\UnauthorizedException */ protected function deny($message = 'This action is unauthorized.') { throw new UnauthorizedException($message); } }