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