23 lines
400 B
PHP
23 lines
400 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
|
||
|
|
class UserProfile extends Model
|
||
|
|
{
|
||
|
|
protected $fillable = [
|
||
|
|
"user_id",
|
||
|
|
"first_name",
|
||
|
|
"last_name",
|
||
|
|
"location",
|
||
|
|
"date_of_birth",
|
||
|
|
];
|
||
|
|
|
||
|
|
public function user(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(User::class);
|
||
|
|
}
|
||
|
|
}
|