app/Http/Controllers/BookingController.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('/monthly');
        return view('booking.index');
    }
public function index ( ) { if ( Auth :: user ( ) -> role == 2 ) return redirect ( '/monthly' ) ; return view ( 'booking.index' ) ; }
Display a listing of the resource.
Display a listing of the resource .