<?php
class ReceivedEmail extends \Eloquent
{
protected $table = 'received_emails';
protected $softDelete = true;
protected $dates = ['deleted_at'];
protected $fillable = array('user_id','from', 'to', 'subject', 'message');
protected static $rules = array(
'from' => 'required|email',
'to' => 'required|email',
'subject' => 'required',
'message' => 'required',
);
}