1 | <?php |
||
14 | class StripeAccount extends Model |
||
15 | { |
||
16 | use SoftDeletes; |
||
17 | |||
18 | /** |
||
19 | * The attributes that are mass assignable. |
||
20 | * |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $fillable = [ |
||
24 | 'customer_id', |
||
25 | 'card_id', |
||
26 | 'card_funding', |
||
27 | 'card_last_digits', |
||
28 | 'card_fingerprint', |
||
29 | 'user_id', |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * The dates attributes. |
||
34 | * |
||
35 | * @var array |
||
36 | */ |
||
37 | protected $dates = [ |
||
38 | 'created_at', |
||
39 | 'updated_at', |
||
40 | 'deleted_at', |
||
41 | ]; |
||
42 | |||
43 | /** |
||
44 | * The attributes excluded from the model's JSON form. |
||
45 | * |
||
46 | * @var array |
||
47 | */ |
||
48 | protected $hidden = [ |
||
49 | |||
50 | ]; |
||
51 | |||
52 | /** |
||
53 | * StripeAccount relationship with User |
||
54 | * |
||
55 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
56 | */ |
||
57 | public function user() |
||
61 | } |
||
62 |