1 | <?php |
||
17 | class TicketMessage extends Model |
||
18 | { |
||
19 | |||
20 | use HasConfigModel; |
||
21 | |||
22 | protected $fillable = [ |
||
23 | 'message' |
||
24 | ]; |
||
25 | |||
26 | public function getTable() |
||
30 | |||
31 | /** |
||
32 | * Gives the ticket that belongs to it |
||
33 | * |
||
34 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
35 | */ |
||
36 | public function ticket() |
||
40 | |||
41 | /** |
||
42 | * Gives the creator of the message |
||
43 | * |
||
44 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
45 | */ |
||
46 | public function user() |
||
50 | |||
51 | /** |
||
52 | * Gives all uploads that a made with the message |
||
53 | * |
||
54 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
55 | */ |
||
56 | public function uploads() |
||
60 | |||
61 | } |
||
62 |