1 | <?php |
||
10 | class ImportRecord extends Model |
||
11 | { |
||
12 | use HashidsTrait; |
||
13 | |||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | protected $fillable = [ |
||
18 | 'resource', |
||
19 | 'data', |
||
20 | ]; |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | protected $casts = [ |
||
26 | 'resource' => 'string', |
||
27 | 'data' => 'json', |
||
28 | 'status' => 'nullable|in:init,skip,fail,update,success', |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * Create a new Log model instance. |
||
33 | * |
||
34 | * @param array $attributes |
||
35 | */ |
||
36 | public function __construct(array $attributes = []) |
||
42 | } |
||
43 |