/** * Add a new IP address. * * @param Http $http * * @return \Herbert\Framework\Response */ public function add(Http $http) { if ($http->has('address')) { Access::create(['address' => $http->get('address')]); } return redirect_response(panel_url('ApiPosts::mainPanel')); }