A lot of things
This commit is contained in:
@@ -14,4 +14,13 @@ class RedirectController extends Controller
|
||||
|
||||
return redirect()->route('entries.show', ['section' => $entry->type, 'entry' => $entry])->with('success', "Your report has been sent.");
|
||||
}
|
||||
|
||||
public function newsReportRedirect( Request $request )
|
||||
{
|
||||
$id = $request->input('id');
|
||||
$entry = News::findOrFail($id);
|
||||
|
||||
return redirect()->route('news.show', ['news' => $entry])->with('success', "Your report has been sent.");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user