Cachet/app/models/Subscriber.php

27 lines
475 B
PHP
Raw Normal View History

<?php
2015-01-01 12:23:17 +00:00
use Illuminate\Database\Eloquent\Model;
2015-01-01 12:25:21 +00:00
use Illuminate\Database\Eloquent\SoftDeletingTrait;
2014-12-20 21:20:17 +00:00
use Watson\Validating\ValidatingTrait;
2015-01-01 12:23:17 +00:00
class Subscriber extends Model
2014-12-20 21:20:17 +00:00
{
2015-01-01 12:23:17 +00:00
use SoftDeletingTrait, ValidatingTrait;
2015-01-01 18:57:33 +00:00
/**
* The validation rules.
*
* @var string[]
*/
protected $rules = [
2014-12-20 21:20:17 +00:00
'email' => 'required|email',
];
2015-01-01 18:57:33 +00:00
/**
* The fillable properties.
*
* @var string[]
*/
protected $fillable = ['email'];
}