23 lines
270 B
PHP
23 lines
270 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Middleware;
|
||
|
|
||
|
use Closure , Session;
|
||
|
|
||
|
class SignMid
|
||
|
{
|
||
|
|
||
|
public function handle($request, Closure $next)
|
||
|
{
|
||
|
|
||
|
if (Session::has('user_id') ) {
|
||
|
|
||
|
return redirect('');
|
||
|
|
||
|
}else{
|
||
|
return $next($request);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|