| 1 | <?php |
||
| 2 | |||
| 3 | namespace Bavix\Settings\Traits; |
||
| 4 | |||
| 5 | use Bavix\Settings\Models\Setting; |
||
| 6 | use Illuminate\Database\Eloquent\Relations\MorphMany; |
||
| 7 | |||
| 8 | trait HasSettings |
||
| 9 | { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @return MorphMany |
||
| 13 | */ |
||
| 14 | 35 | public function settings(): MorphMany |
|
| 15 | { |
||
| 16 | 35 | return $this->morphMany(Setting::class, 'model'); |
|
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 17 | } |
||
| 18 | |||
| 19 | } |
||
| 20 |