first commit
This commit is contained in:
38
app/Models/UserDetail.php
Normal file
38
app/Models/UserDetail.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Models\User;
|
||||
use App\Models\LeaderboardMaster;
|
||||
|
||||
|
||||
class UserDetail extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'company_id',
|
||||
'profile_picture',
|
||||
'user_bio',
|
||||
'description',
|
||||
'gender',
|
||||
'age',
|
||||
'city',
|
||||
'full_address',
|
||||
'height',
|
||||
'weight'
|
||||
];
|
||||
|
||||
public function user(){
|
||||
return $this->hasMany(User::class);
|
||||
}
|
||||
|
||||
// public function user_details()
|
||||
// {
|
||||
// return $this->belongsTo(LeaderboardMaster::class);
|
||||
// }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user