mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fixes unit test
Throwing a guarded / mass assign exception
This commit is contained in:
parent
ef1f8a76d8
commit
26b4a64854
@ -54,7 +54,6 @@ class NullablePost extends Post
|
||||
|
||||
class SluggablePost extends Post
|
||||
{
|
||||
|
||||
use \October\Rain\Database\Traits\Sluggable;
|
||||
|
||||
/**
|
||||
@ -74,7 +73,6 @@ class SluggablePost extends Post
|
||||
|
||||
class RevisionablePost extends Post
|
||||
{
|
||||
|
||||
use \October\Rain\Database\Traits\Revisionable;
|
||||
use \October\Rain\Database\Traits\SoftDelete;
|
||||
|
||||
@ -126,6 +124,11 @@ class ValidationPost extends Post
|
||||
{
|
||||
use \October\Rain\Database\Traits\Validation;
|
||||
|
||||
/**
|
||||
* @var array Guarded fields
|
||||
*/
|
||||
protected $guarded = [];
|
||||
|
||||
public $rules = [
|
||||
'title' => 'required|min:3|max:255',
|
||||
'slug' => ['required', 'regex:/^[a-z0-9\/\:_\-\*\[\]\+\?\|]*$/i', 'unique:database_tester_posts'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user