/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { $currency = Currency::findOrFail($id); $this->authorize('destroy', $currency); if ($currency->delete()) { return redirect(action('CurrenciesController@index'))->with('success', trans('messages.deleted_success')); } return redirect(action('CurrenciesController@edit', $currency->id))->with('error', trans('messages.deleted_error')); }