|
@@ -23,7 +23,7 @@ discard block |
|
|
block discarded – undo |
|
23
|
23
|
|
|
24
|
24
|
use ValidationTrait; |
|
25
|
25
|
|
|
26
|
|
- public $implement = ['@RainLab.Translate.Behaviors.TranslatableModel']; |
|
|
26
|
+ public $implement = [ '@RainLab.Translate.Behaviors.TranslatableModel' ]; |
|
27
|
27
|
|
|
28
|
28
|
/** @var string $table The database table used by the model */ |
|
29
|
29
|
public $table = 'vojtasvoboda_reviews_reviews'; |
|
@@ -37,13 +37,13 @@ discard block |
|
|
block discarded – undo |
|
37
|
37
|
'content' => 'required|min:6|max:3000', |
|
38
|
38
|
]; |
|
39
|
39
|
|
|
40
|
|
- public $translatable = ['name', 'title', 'content']; |
|
|
40
|
+ public $translatable = [ 'name', 'title', 'content' ]; |
|
41
|
41
|
|
|
42
|
42
|
public $fillable = [ |
|
43
|
43
|
'email', 'name', 'title', 'rating', 'content', 'approved', |
|
44
|
44
|
]; |
|
45
|
45
|
|
|
46
|
|
- public $dates = ['created_at', 'updated_at', 'deleted_at']; |
|
|
46
|
+ public $dates = [ 'created_at', 'updated_at', 'deleted_at' ]; |
|
47
|
47
|
|
|
48
|
48
|
public $belongsToMany = [ |
|
49
|
49
|
'categories' => [ |
Please login to merge, or discard this patch.