Вход Регистрация
Файл: gapps/vendor/laravel/framework/src/Illuminate/Auth/Access/HandlesAuthorization.php
Строк: 34
<?php

namespace IlluminateAuthAccess;

trait 
HandlesAuthorization
{
    
/**
     * Create a new access response.
     *
     * @param  string|null  $message
     * @return IlluminateAuthAccessResponse
     */
    
protected function allow($message null)
    {
        return new 
Response($message);
    }

    
/**
     * Throws an unauthorized exception.
     *
     * @param  string  $message
     * @return void
     *
     * @throws IlluminateAuthAccessAuthorizationException
     */
    
protected function deny($message 'This action is unauthorized.')
    {
        throw new 
AuthorizationException($message);
    }
}
Онлайн: 1
Реклама