Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
SubscriptionTrials | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
user | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace App\Http\Models; |
4 | |
5 | use App\Http\Models\Auth\User; |
6 | |
7 | class SubscriptionTrials extends Moloquent |
8 | { |
9 | /** |
10 | * The table associated with the model. |
11 | * |
12 | * @var string |
13 | */ |
14 | protected $table = 'subscription_trials'; |
15 | |
16 | /** |
17 | * The attributes that should be mutated to dates. |
18 | * |
19 | * @var array |
20 | */ |
21 | protected $dates = [ |
22 | 'trial_start_date', |
23 | 'trial_end_date', |
24 | ]; |
25 | |
26 | /** |
27 | * The attributes that are mass assignable. |
28 | * |
29 | * @var array |
30 | */ |
31 | protected $fillable = [ |
32 | 'user_id', 'plan_identifier', 'trial_start_date', 'trial_end_date' |
33 | ]; |
34 | |
35 | /** |
36 | * Get the user that owns the trial record |
37 | * |
38 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
39 | */ |
40 | public function user() |
41 | { |
42 | return $this->belongsTo(User::class); |
43 | } |
44 | } |