1 | <?php |
||
6 | class DiscussLog extends Model |
||
7 | { |
||
8 | use DiscussLogPresenter; |
||
9 | |||
10 | /** |
||
11 | * The attributes that should be cast to native types. |
||
12 | * |
||
13 | * @var array |
||
14 | */ |
||
15 | protected $casts = [ |
||
16 | 'data' => 'array' |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * Get the user that owns the log. |
||
21 | * |
||
22 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
23 | */ |
||
24 | public function user() |
||
28 | |||
29 | /** |
||
30 | * Get the loggable relation. |
||
31 | * |
||
32 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo |
||
33 | */ |
||
34 | public function loggable() |
||
38 | } |
||
39 |