app/Http/Controllers/DateController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Date  $date
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $date = Date::find($id);
        $user = $date->user_id = $request->get('user_id');
        $date->fill(array('user_id' => $user));
        $date->save();
        return redirect('/home');
    }
public function update ( Request $ request , $ id ) { $ date = Date :: find ( $ id ) ; $ user = $ date -> user_id = $ request -> get ( 'user_id' ) ; $ date -> fill ( array ( 'user_id' => $ user ) ) ; $ date -> save ( ) ; return redirect ( '/home' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
//        dd($date);