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_address', 'to_address', 'title', 'message');

	protected static $rules = array(
		'from_address' => 'required|email',
		'to_address'   => 'required|email',
		'title'        => 'required',
		'message'      =>  'required',
	);
}

Archive Download this file

Branches

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