for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Email extends Model
{
protected $table = 'user_emails';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'email',
];
* Get the post that owns the comment.
public function user()
return $this->belongsTo('App\User');
}