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