| 1 | <?php |
||
| 4 | class Account extends Model |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * The attributes that are mass assignable. |
||
| 8 | * |
||
| 9 | * @var array |
||
| 10 | */ |
||
| 11 | protected $fillable = [ |
||
| 12 | 'user_id', |
||
| 13 | 'first_name', |
||
| 14 | 'last_name', |
||
| 15 | 'biography', |
||
| 16 | 'signature', |
||
| 17 | 'facebook', |
||
| 18 | 'twitter' |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get the user that owns the account. |
||
| 23 | * |
||
| 24 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 25 | */ |
||
| 26 | public function user() |
||
| 30 | } |
||
| 31 |