實(shí)現(xiàn)類似laravel的控制器中間件,有沒(méi)有大佬提供個(gè)思路。
webman 中間件
這文檔是一分鐘都不想看哦
你可能沒(méi)理解我的意思,就是類似在控制器的構(gòu)造方法里定義中間件。而不是在路由里定義。
public function __construct() { $this->middleware('auth.member')->except(['login']); }