| 1 | <?php |
||
| 7 | class Devices extends Model |
||
| 8 | { |
||
| 9 | protected $table = 'devices'; |
||
| 10 | protected $primaryKey = 'device_id'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Indicates if the model should be timestamped. |
||
| 14 | * |
||
| 15 | * @var bool |
||
| 16 | */ |
||
| 17 | public $timestamps = false; |
||
| 18 | |||
| 19 | public function getIpAttribute( $ip ) |
||
| 23 | |||
| 24 | public function setIpAttribute( $ip ) |
||
| 28 | |||
| 29 | // -- Define Reletionships -- |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns a list of users that can access this device |
||
| 33 | */ |
||
| 34 | public function users() { |
||
| 37 | } |
||
| 38 | |||
| 39 |