forked from miguel456/rbrecruiter
Miguel Nogueira
2ff0da3e4f
Also moved redundant HTML markup to component file for reuse. Username to UUID converter also added as Middleware
26 lines
354 B
PHP
26 lines
354 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Profile extends Model
|
|
{
|
|
|
|
public $fillable = [
|
|
|
|
'profileShortBio',
|
|
'profileAboutMe',
|
|
'avatarPreference',
|
|
'socialLinks',
|
|
'userID'
|
|
|
|
];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo('App\User', 'userID', 'id');
|
|
}
|
|
|
|
}
|