This repository has been archived on 2020-11-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pingan/app/Merchant/Middleware/Authenticate.php
2020-08-06 16:37:53 +08:00

19 lines
328 B
PHP

<?php
namespace App\Merchant\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class Authenticate
{
public function handle($request, Closure $next)
{
if (Auth::guard('merchant')->guest()) {
return redirect()->route('merchant.login');
}
return $next($request);
}
}