Cleaned up the models

This commit is contained in:
Graham Campbell
2015-01-01 18:57:33 +00:00
parent ee2d3bce3b
commit 5937b7b040
9 changed files with 95 additions and 36 deletions
+10
View File
@@ -8,9 +8,19 @@ class Subscriber extends Model
{
use SoftDeletingTrait, ValidatingTrait;
/**
* The validation rules.
*
* @var string[]
*/
protected $rules = [
'email' => 'required|email',
];
/**
* The fillable properties.
*
* @var string[]
*/
protected $fillable = ['email'];
}