| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class LibraryIp extends Model |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The database table used by the model. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $table = 'library_ips'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The attributes that are mass assignable. |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $fillable = ['library_id', 'ip']; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Prepare a date for array / JSON serialization. |
||
| 26 | * |
||
| 27 | * @param \DateTimeInterface $date |
||
| 28 | * @return string |
||
| 29 | */ |
||
| 30 | protected function serializeDate(DateTimeInterface $date) |
||
| 33 | } |
||
| 34 | |||
| 35 | public function library() |
||
| 40 |