for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Axsor\PhpIPAM\Http\Requests;
class DeviceRequest extends Connector
{
public function index()
return $this->get('devices');
}
public function show($device)
$id = get_id_from_variable($device);
return $this->get("devices/{$id}");
public function subnets($device)
return $this->get("devices/{$id}/subnets");
public function addresses($device)
return $this->get("devices/{$id}/addresses");
public function create(array $device)
return $this->post('devices', $device);
public function update($device, array $newData)
return $this->patch("devices/{$id}", $newData);
public function drop($device)
return $this->delete("devices/{$id}");