| 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 ) |
||
| 25 | |||
| 26 | public function setIpAttribute( $ip ) |
||
| 30 | |||
| 31 | // -- Define Reletionships -- |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Returns a list of users that can access this device |
||
| 35 | */ |
||
| 36 | public function users() { |
||
| 39 | } |
||
| 40 |