| Total Complexity | 1 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class LogEntry extends Model |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The table associated with the model. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $table = 'log'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Indicates if the model should be timestamped. |
||
| 18 | * |
||
| 19 | * @var bool |
||
| 20 | */ |
||
| 21 | public $timestamps = false; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The attributes that should be cast to native types. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $casts = [ |
||
| 29 | 'time' => 'datetime', |
||
| 30 | 'context' => 'array', |
||
| 31 | ]; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The attributes that are mass assignable. |
||
| 35 | * |
||
| 36 | * @var array |
||
| 37 | */ |
||
| 38 | protected $fillable = [ |
||
| 39 | 'channel', |
||
| 40 | 'message', |
||
| 41 | 'level', |
||
| 42 | 'level_name', |
||
| 43 | 'context', |
||
| 44 | 'file', |
||
| 45 | 'line', |
||
| 46 | 'time', |
||
| 47 | ]; |
||
| 48 | |||
| 49 | public function getLinesAttribute() |
||
| 54 |