【发布时间】:2016-01-30 15:38:11
【问题描述】:
我在我的 laravel 项目中有这个,我想向 exept 数组添加更多方法。我不知道该怎么写?
public function __construct()
{
$this->middleware('auth', [ 'except' => 'index' ]);
}
【问题讨论】:
-
欢迎来到 SO。请阅读What topics can I ask about 和How to ask a good question 和the perfect question SO 不是免费的编码或教程服务 你必须证明你已经为解决自己的问题付出了一些努力。
标签: php laravel-5 middleware