2014-11-25 16:09:03 +00:00
|
|
|
<?php
|
|
|
|
|
2015-04-19 08:52:39 +01:00
|
|
|
/*
|
|
|
|
* This file is part of Cachet.
|
|
|
|
*
|
2015-05-25 17:59:08 +01:00
|
|
|
* (c) Cachet HQ <support@cachethq.io>
|
2015-04-19 08:52:39 +01:00
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
2015-01-02 00:18:19 +00:00
|
|
|
namespace CachetHQ\Cachet\Models;
|
|
|
|
|
2015-01-01 12:23:17 +00:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2015-03-20 18:30:45 -06:00
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
2014-12-20 21:20:17 +00:00
|
|
|
use Watson\Validating\ValidatingTrait;
|
2014-11-25 16:09:03 +00:00
|
|
|
|
2015-01-02 12:07:51 +00:00
|
|
|
/**
|
2015-01-02 12:16:28 +00:00
|
|
|
* @property int $id
|
|
|
|
* @property string $email
|
|
|
|
* @property \Carbon\Carbon $created_at
|
|
|
|
* @property \Carbon\Carbon $updated_at
|
|
|
|
* @property \Carbon\Carbon $deleted_at
|
2015-01-02 12:07:51 +00:00
|
|
|
*/
|
2015-01-01 12:23:17 +00:00
|
|
|
class Subscriber extends Model
|
2014-12-20 21:20:17 +00:00
|
|
|
{
|
2015-03-20 18:30:45 -06:00
|
|
|
use SoftDeletes, 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
|
|
|
}
|