create($request->validated()); return redirect()->route('news.index'); } /** * Show the form for editing the specified resource. */ public function edit(News $news): View { Gate::authorize('update', $news); return view('news.edit', compact('news')); } /** * Update the specified resource in storage. */ public function update(NewsRequest $request, News $news): RedirectResponse { Gate::authorize('update', $news); $news->update($request->validated()); return redirect()->route('news.index'); } /** * Remove the specified resource from storage. */ public function destroy(News $news): RedirectResponse { Gate::authorize('delete', $news); $news->delete(); return redirect()->route('news.index'); } }