@@ -45,6 +45,6 @@ |
||
45 | 45 | private function performValidation(array $data, array $rules, array $messages = [], array $customAttributes = []) |
46 | 46 | { |
47 | 47 | return $this->validator->make($data, $rules, $messages, $customAttributes) |
48 | - ->validate(); |
|
48 | + ->validate(); |
|
49 | 49 | } |
50 | 50 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | public function scopeMorphable($query, string $morphkey = null) |
33 | 33 | { |
34 | 34 | return $query->withoutGlobalScope(static::globalMorphableScope()) |
35 | - ->where('morph_key', '=', $morphkey); |
|
35 | + ->where('morph_key', '=', $morphkey); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -103,7 +103,7 @@ |
||
103 | 103 | { |
104 | 104 | $relations = static::where(function ($query) use ($type, $id) { |
105 | 105 | return $query->where('parent_type', $type) |
106 | - ->where('parent_id', $id); |
|
106 | + ->where('parent_id', $id); |
|
107 | 107 | })->orWhere(function ($query) use ($type, $id) { |
108 | 108 | return $query->where('child_type', $type) |
109 | 109 | ->where('child_id', $id); |
@@ -90,11 +90,11 @@ |
||
90 | 90 | return new Fields([ |
91 | 91 | $this->pageBuilderField(), |
92 | 92 | InputField::make('title')->translatable($this->model->availableLocales()) |
93 | - ->validation('required-fallback-locale|max:200', [], [ |
|
94 | - 'trans.'.config('app.fallback_locale', 'nl').'.title' => 'title', |
|
95 | - ]) |
|
96 | - ->label('De titel van je '.$this->model->labelSingular ?? 'pagina') |
|
97 | - ->description('Dit is de titel die zal worden getoond in de overzichten en modules.<br> Deze zal gebruikt worden als interne titel en slug van de nieuwe pagina.'), |
|
93 | + ->validation('required-fallback-locale|max:200', [], [ |
|
94 | + 'trans.'.config('app.fallback_locale', 'nl').'.title' => 'title', |
|
95 | + ]) |
|
96 | + ->label('De titel van je '.$this->model->labelSingular ?? 'pagina') |
|
97 | + ->description('Dit is de titel die zal worden getoond in de overzichten en modules.<br> Deze zal gebruikt worden als interne titel en slug van de nieuwe pagina.'), |
|
98 | 98 | InputField::make('slug') |
99 | 99 | ->translatable($this->model->availableLocales()) |
100 | 100 | ->validation($this->model->id |