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/Guest.php
2020-08-06 16:37:53 +08:00

19 lines
336 B
PHP

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