| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class CustomerNote extends Model |
||
| 9 | { |
||
| 10 | use HasFactory; |
||
| 11 | |||
| 12 | protected $primaryKey = 'note_id'; |
||
| 13 | protected $guarded = ['updated_at', 'created_at']; |
||
| 14 | protected $appends = ['author', 'updated_author']; |
||
| 15 | protected $hidden = ['created_by', 'updated_by']; |
||
| 16 | protected $casts = [ |
||
| 17 | 'created_at' => 'datetime:M d, Y', |
||
| 18 | 'updated_at' => 'datetime:M d, Y', |
||
| 19 | 'urgent' => 'boolean', |
||
| 20 | 'shared' => 'boolean', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | public function getAuthorAttribute() |
||
| 26 | } |
||
| 27 | |||
| 28 | public function getUpdatedAuthorAttribute() |
||
| 34 |