LAR_Maintenance/app/Traits/HasSettings.php
JonatanRek 571df9a0a4 Fixes
2024-07-30 18:13:21 +02:00

16 lines
272 B
PHP

<?php
namespace App\Traits;
use App\Models\Activity;
use App\Models\Setting;
use Illuminate\Database\Eloquent\Relations\MorphMany;
trait HasSettings
{
public function settings() : MorphMany
{
return $this->morphMany(Setting::class, 'settable');
}
}