/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $status = Status::findOrFail($id); $name = $status->name; $status->delete(); Session::flash('status', "The status {$name} has been modified!"); return redirect()->action('\\Kordy\\Ticketit\\Controllers\\StatusesController@index'); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $status = Status::findOrFail($id); $name = $status->name; $status->delete(); Session::flash('status', trans('ticketit::lang.status-name-has-been-deleted', ['name' => $name])); return redirect()->action('\\Kordy\\Ticketit\\Controllers\\StatusesController@index'); }