예제 #1
0
 /**
  * Remove the specified resource from storage.
  * @param  int  $id
  * @return Response
  */
 public function destroy(Netblock $netblock)
 {
     $netblock->delete();
     return Redirect::route('admin.netblocks.index')->with('message', 'Netblock has been deleted.');
 }
예제 #2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param Netblock $netblock
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function destroy(Netblock $netblock)
 {
     $netblock->delete();
     return Redirect::route('admin.netblocks.index')->with('message', trans('netblocks.msg.deleted'));
 }