| Total Complexity | 1 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ContactMessage extends Model |
||
| 10 | { |
||
| 11 | use Hashidable; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * The table associated with the model. |
||
| 15 | * |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $table = 'contact_messages'; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The attributes that are mass assignable. |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $fillable = [ |
||
| 26 | 'name', |
||
| 27 | 'email', |
||
| 28 | 'position', |
||
| 29 | 'subject', |
||
| 30 | 'body', |
||
| 31 | ]; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The accessors to append to the model's array form. |
||
| 35 | * |
||
| 36 | * @var array |
||
| 37 | */ |
||
| 38 | protected $appends = ['hashed_id']; |
||
| 39 | |||
| 40 | /* |
||
| 41 | * ----------------------------------------------------------------- * |
||
| 42 | * --------------------------- Accessors --------------------------- * |
||
| 43 | * ----------------------------------------------------------------- * |
||
| 44 | */ |
||
| 45 | |||
| 46 | /* |
||
| 47 | * ----------------------------------------------------------------- * |
||
| 48 | * ---------------------------- Mutators --------------------------- * |
||
| 49 | * ----------------------------------------------------------------- * |
||
| 50 | */ |
||
| 51 | |||
| 52 | /* |
||
| 53 | * ----------------------------------------------------------------- * |
||
| 54 | * ----------------------------- Scopes ---------------------------- * |
||
| 55 | * ----------------------------------------------------------------- * |
||
| 56 | */ |
||
| 57 | |||
| 58 | /* |
||
| 59 | * ----------------------------------------------------------------- * |
||
| 60 | * ------------------------------ Misc ----------------------------- * |
||
| 61 | * ----------------------------------------------------------------- * |
||
| 62 | */ |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Convert the model instance to an array. |
||
| 66 | * |
||
| 67 | * @return array |
||
| 68 | */ |
||
| 69 | public function toArray() |
||
| 74 |