app/Http/Controllers/NewsController.php
/**
     * Update the specified resource in storage.
     *
     * @param \Illuminate\Http\Request $request
     * @param \App\Models\News $news
     * @return \Illuminate\Http\RedirectResponse
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(NewsRequest $request, News $news)
    {
        $news->update($request->only('title', 'publish_date', 'content'));
        return redirect()->route('news.index');
    }
public function update ( NewsRequest $ request , News $ news ) { $ news -> update ( $ request -> only ( 'title' , 'publish_date' , 'content' ) ) ; return redirect ( ) -> route ( 'news.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .