EscolaLMS/Auth

View on GitHub
src/Models/Traits/UserHasSettings.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace EscolaLms\Auth\Models\Traits;

use EscolaLms\Auth\Models\UserSetting;
use EscolaLms\Auth\Models\User;
use Illuminate\Database\Eloquent\Relations\HasMany;

trait UserHasSettings
{
    use ExtendableModelTrait;

    public function settings(): HasMany
    {
        /** @var User $this */
        return $this->hasMany(UserSetting::class);
    }
}