Total Complexity | 1 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | class FeedbackAnswer extends ActiveModel |
||
25 | { |
||
26 | use SearchableTrait; |
||
27 | |||
28 | protected $casts = [ |
||
29 | 'id' => 'integer', |
||
30 | 'feedback_id' => 'integer', |
||
31 | 'name' => 'string', |
||
32 | 'email' => 'string', |
||
33 | 'message' => 'string', |
||
34 | 'is_admin' => 'boolean', |
||
35 | 'user_id' => 'integer', |
||
36 | 'ip' => 'string' |
||
37 | ]; |
||
38 | |||
39 | protected $searchable = [ |
||
40 | 'columns' => [ |
||
41 | 'message' => 2 |
||
42 | ] |
||
43 | ]; |
||
44 | |||
45 | /** |
||
46 | * Get feedback post relationship |
||
47 | * @return \Illuminate\Database\Eloquent\Relations\HasOne|FeedbackPost |
||
48 | */ |
||
49 | public function post() |
||
54 |