Total Complexity | 1 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class UserLog extends ActiveModel |
||
17 | { |
||
18 | protected $casts = [ |
||
19 | 'id' => 'integer', |
||
20 | 'user_id' => 'integer', |
||
21 | 'type' => 'string', |
||
22 | 'message' => 'string' |
||
23 | ]; |
||
24 | |||
25 | /** |
||
26 | * Get user object as relation |
||
27 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
28 | */ |
||
29 | public function user() |
||
34 |