mentors

mentors Git Source Tree


Root/app/models/ReceivedEmail.php

<?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',
	);
}

Archive Download this file

Branches

Number of commits:
Page rendered in 0.11866s using 11 queries.