app/Http/Controllers/Backend/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($id)
    {
        session()->forget('member');
        if($id == null) return response()->json(["message" => "member id is null."]);
        $member = User::where('id' , $id)->first();
        if($member == null) return response()->json(["message" => "member is null."]);
        session()->put('member' , $member);
        return redirect()->route('/booking/createByAdmin');
    }
public function index ( $ id ) { session ( ) -> forget ( 'member' ) ; if ( $ id == null ) return response ( ) -> json ( [ " message " => " member id is null. " ] ) ; $ member = User :: where ( 'id' , $ id ) -> first ( ) ; if ( $ member == null ) return response ( ) -> json ( [ " message " => " member is null. " ] ) ; session ( ) -> put ( 'member' , $ member ) ; return redirect ( ) -> route ( '/booking/createByAdmin' ) ; }
Display a listing of the resource.
Display a listing of the resource .
//