app/Http/Controllers/EventController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Event  $event
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(EventUpdateRequest $request, Event $event)
    {
        $event->fill([
            "title" => $request->input('title'),
            "about" => $request->input('about'),
            "event_date" => $request->input('event_date'),
        ])->save();
        return redirect()->route('events.index');
    }
public function update ( EventUpdateRequest $ request , Event $ event ) { $ event -> fill ( [ " title " => $ request -> input ( 'title' ) , " about " => $ request -> input ( 'about' ) , " event_date " => $ request -> input ( 'event_date' ) , ] ) -> save ( ) ; return redirect ( ) -> route ( 'events.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
// dd($request->all());