[code]
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class TestMiddleware
{
// 제외할 url 경로
protected $except = [
‘try-verify’,
‘logout’,
‘user-verify’
];
public function handle(Request $request, Closure $next)
{
if (!in_array($request->path(), $this->except)) {
// ToDO
}
return $next($request);
}
}
[/code]