app/Http/Controllers/InformController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        if (Auth::user()->role == 2) {
            return redirect('/inform/monthly');
        }
        return view('inform.index');
    }
public function index ( ) { if ( Auth :: user ( ) -> role == 2 ) { return redirect ( '/inform/monthly' ) ; } return view ( 'inform.index' ) ; }
Display a listing of the resource.
Display a listing of the resource .
// $user = Auth::user(); //$booking = Booking::where('userID' ,  $user->id)->get();