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