Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
Chart | |
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 Chart extends Moloquent |
8 | { |
9 | /** |
10 | * The table associated with the model. |
11 | * |
12 | * @var string |
13 | */ |
14 | protected $table = 'charts'; |
15 | |
16 | /** |
17 | * The attributes that are mass assignable. |
18 | * |
19 | * @var array |
20 | */ |
21 | protected $fillable = [ |
22 | 'user_id', |
23 | 'month_year', |
24 | 'flycuts_used', |
25 | 'characters_typed', |
26 | 'characters_saved', |
27 | 'time_saved', |
28 | 'cost_saved', |
29 | 'feature', |
30 | ]; |
31 | |
32 | /** |
33 | * Get the user that owns the chart record |
34 | * |
35 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
36 | */ |
37 | public function user() |
38 | { |
39 | return $this->belongsTo(User::class); |
40 | } |
41 | } |