@@ -4,8 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use App\Devices; |
| 6 | 6 | use App\User; |
| 7 | - |
|
| 8 | -use App\Http\Requests; |
|
| 9 | 7 | use Illuminate\Http\Request; |
| 10 | 8 | |
| 11 | 9 | class ApiController extends Controller |
@@ -16,14 +16,14 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public $timestamps = false; |
| 18 | 18 | |
| 19 | - public function getIpAttribute( $ip ) |
|
| 19 | + public function getIpAttribute($ip) |
|
| 20 | 20 | { |
| 21 | - return inet_ntop( $ip ); |
|
| 21 | + return inet_ntop($ip); |
|
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - public function setIpAttribute( $ip ) |
|
| 24 | + public function setIpAttribute($ip) |
|
| 25 | 25 | { |
| 26 | - $this->attributes['ip'] = inet_pton( $ip ); |
|
| 26 | + $this->attributes['ip'] = inet_pton($ip); |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | // -- Define Reletionships -- |