2014-11-25 16:09:03 +00:00
|
|
|
<?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;
|
2014-11-25 16:09:03 +00:00
|
|
|
|
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;
|
2014-11-25 16:09:03 +00:00
|
|
|
|
2015-01-01 18:57:33 +00:00
|
|
|
/**
|
|
|
|
* The validation rules.
|
|
|
|
*
|
|
|
|
* @var string[]
|
|
|
|
*/
|
2014-11-27 16:05:00 +00:00
|
|
|
protected $rules = [
|
2014-12-20 21:20:17 +00:00
|
|
|
'email' => 'required|email',
|
2014-11-27 16:05:00 +00:00
|
|
|
];
|
|
|
|
|
2015-01-01 18:57:33 +00:00
|
|
|
/**
|
|
|
|
* The fillable properties.
|
|
|
|
*
|
|
|
|
* @var string[]
|
|
|
|
*/
|
2014-11-27 16:05:00 +00:00
|
|
|
protected $fillable = ['email'];
|
2014-11-27 22:08:28 +00:00
|
|
|
}
|