Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
FlyGrammarActions
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 user
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace App\Http\Models;
4
5use App\Http\Models\Auth\User;
6use App\Observers\FlyGrammarActionsObserver;
7use Illuminate\Database\Eloquent\Attributes\ObservedBy;
8use Illuminate\Notifications\Notifiable;
9
10#[ObservedBy([FlyGrammarActionsObserver::class])]
11class FlyGrammarActions extends Moloquent
12{
13    use Notifiable;
14
15    /**
16     * The table associated with the model.
17     *
18     * @var string
19     */
20    protected $table = 'fly_grammar_actions';
21
22    /**
23     * The attributes that are mass assignable.
24     *
25     * @var array
26     */
27    protected $fillable = [
28        'name',
29        'original_text',
30        'result_text',
31        'action_type',
32        'user_id',
33        'provider',
34        'characters_count',
35        'characters_saved',
36        'time_saved',
37        'cost_saved',
38        'plan_id',
39        'company_id',
40        'language',
41        'executed_at',
42        'context',
43    ];
44
45    /**
46     *  Get the user that owns the flycut usage
47     *
48     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
49     */
50    public function user()
51    {
52        return $this->belongsTo(User::class);
53    }
54}