| Total Complexity | 3 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class TrackAction extends AbstractTracking |
||
| 13 | { |
||
| 14 | use TrackingRelationships; |
||
|
|
|||
| 15 | |||
| 16 | /** |
||
| 17 | * The "booting" method of the model. |
||
| 18 | * |
||
| 19 | * @return void |
||
| 20 | */ |
||
| 21 | protected static function boot() |
||
| 22 | { |
||
| 23 | parent::boot(); |
||
| 24 | static::addGlobalScope(new CreatedOrderScope()); |
||
| 25 | static::addGlobalScope(new IdOrderScope()); |
||
| 26 | } |
||
| 27 | |||
| 28 | protected $table = 'track_action'; |
||
| 29 | protected $primaryKey = 'track_action_id'; |
||
| 30 | |||
| 31 | protected $fillable = [ |
||
| 32 | 'track_action_id', |
||
| 33 | 'action', |
||
| 34 | 'model_table', |
||
| 35 | 'model_key', |
||
| 36 | 'model_changes', |
||
| 37 | ]; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Query Builder. |
||
| 41 | * |
||
| 42 | * @param $query |
||
| 43 | * |
||
| 44 | * @return TrackActionBuilder() |
||
| 45 | */ |
||
| 46 | public function newEloquentBuilder($query) |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return TrackActionBuilder|Builder |
||
| 53 | */ |
||
| 54 | public static function query(): TrackActionBuilder |
||
| 57 | } |
||
| 58 | } |
||
| 59 |