コード例 #1
0
 /**
  * Store a newly created resource in storage.
  * @return Response
  */
 public function store(NetblockFormRequest $netblock)
 {
     $input = Input::all();
     $input['first_ip'] = ICF::inetPtoi($input['first_ip']);
     $input['last_ip'] = ICF::inetPtoi($input['last_ip']);
     Netblock::create($input);
     return Redirect::route('admin.netblocks.index')->with('message', 'Netblock has been created');
 }
コード例 #2
0
 /**
  * Store a newly created resource in storage.
  *
  * @param NetblockFormRequest $netblockForm
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function store(NetblockFormRequest $netblockForm)
 {
     Netblock::create($netblockForm->all());
     return Redirect::route('admin.netblocks.index')->with('message', trans('netblocks.msg.added'));
 }