1<?php
2
3namespace App\Http\Middleware;
4
5use App\Providers\RouteServiceProvider;
6use Closure;
7use Illuminate\Support\Facades\Auth;
8class user
9{
10
11 /**
12 * Handle an incoming request.
13 *
14 * @param \Illuminate\Http\Request $request
15 * @param \Closure $next
16 * @param string|null $guard
17 * @return mixed
18 */
19 public function handle($request, Closure $next, $guard = null)
20 {
21
22
23 // if (Auth::user() =='')
24 // {
25
26
27 // return redirect(RouteServiceProvider::HOME);
28 // }
29
30 return $next($request);
31 }
32}
33