Loading app/Models/User.php +6 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ // use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Fortify\TwoFactorAuthenticatable; Loading Loading @@ -66,4 +67,9 @@ protected function casts(): array 'password' => 'hashed', ]; } public function dependencia(): BelongsTo { return $this->belongsTo(Dependencia::class); } } Loading
app/Models/User.php +6 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ // use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Fortify\TwoFactorAuthenticatable; Loading Loading @@ -66,4 +67,9 @@ protected function casts(): array 'password' => 'hashed', ]; } public function dependencia(): BelongsTo { return $this->belongsTo(Dependencia::class); } }