| Conditions | 3 | 
| Paths | 1 | 
| Total Lines | 9 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 10 | public static function bootHasSchemalessTable() | ||
| 11 |     { | ||
| 12 |         static::saving(function (Model &$model) { | ||
| 13 | $model->model = $model->model ?: get_class($model); | ||
| 14 | $model->locale = $model->locale ?: app()->getLocale(); | ||
|  | |||
| 15 | }); | ||
| 16 | |||
| 17 | // limit query of this model to its type | ||
| 18 | static::addGlobalScope(new DocumentScope()); | ||
| 19 | } | ||
| 38 |