for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xetaravel\Models;
class Account extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'user_id',
'first_name',
'last_name',
'biography',
'signature',
'facebook',
'twitter'
];
* Get the user that owns the account.
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
public function user()
return $this->belongsTo('Xetaravel\Models\User');
}