Laravel错误:此操作未经授权

时间:2017-12-03 20:21:11

标签: laravel-5.5

我已经安装了laravel 5.5并且我已经按照本教程enter link description here来实现角色,在运行php artisan make:auth之后。

登录后会出错:

D:\xampp\htdocs\webshop\vendor\laravel\framework\src\Illuminate\Foundation\Application.php
    return file_exists($this->storagePath().'/framework/down');
}

/**
 * Throw an HttpException with the given data.
 *
 * @param  int     $code
 * @param  string  $message
 * @param  array   $headers
 * @return void
 *
 * @throws \Symfony\Component\HttpKernel\Exception\HttpException
 */
public function abort($code, $message = '', array $headers = [])
{
    if ($code == 404) {
        throw new NotFoundHttpException($message);
    }

    throw new HttpException($code, $message, null, $headers);
}

/**
 * Register a terminating callback with the application.
 *
 * @param  \Closure  $callback
 * @return $this
 */
public function terminating(Closure $callback)
{
    $this->terminatingCallbacks[] = $callback;

    return $this;
}

/**
 * Terminate the application.
 *
 * @return void
 */

参数 “这个行为是未经授权的。”

解释是什么?

0 个答案:

没有答案