Cachet/app/Models/Subscriber.php

45 lines
905 B
PHP
Raw Normal View History

<?php
/*
* This file is part of Cachet.
*
2015-05-25 17:59:08 +01:00
* (c) Cachet HQ <support@cachethq.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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;
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;
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'];
}