@@ -42,7 +42,7 @@ |
||
| 42 | 42 | $role->givePermissionTo($request->permission_names); |
| 43 | 43 | |
| 44 | 44 | return redirect()->route('chief.back.roles.index') |
| 45 | - ->with('messages.success', 'Rol '. $role->name.' is toegevoegd.'); |
|
| 45 | + ->with('messages.success', 'Rol '. $role->name.' is toegevoegd.'); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | public function edit($id) |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | protected function unauthorized($request, AuthorizationException $exception) |
| 62 | 62 | { |
| 63 | 63 | return redirect()->route('chief.back.dashboard') |
| 64 | - ->with('messages.error', 'Oeps. Het lijkt erop dat je geen toegang hebt tot dit deel van chief. Vraag even de beheerder voor meer info.'); |
|
| 64 | + ->with('messages.error', 'Oeps. Het lijkt erop dat je geen toegang hebt tot dit deel van chief. Vraag even de beheerder voor meer info.'); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -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 |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $manager = app(StoreManager::class)->handle($modelManager, $request); |
| 53 | 53 | |
| 54 | 54 | return redirect()->to($manager->route('edit')) |
| 55 | - ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i> "' . $manager->details()->title . '" is toegevoegd'); |
|
| 55 | + ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i> "' . $manager->details()->title . '" is toegevoegd'); |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | public function edit(string $key, $id) |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | app(UpdateManager::class)->handle($manager, $request); |
| 83 | 83 | |
| 84 | 84 | return redirect()->to($manager->route('edit')) |
| 85 | - ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i> "' . $manager->details()->title . '" werd aangepast'); |
|
| 85 | + ->with('messages.success', '<i class="fa fa-fw fa-check-circle"></i> "' . $manager->details()->title . '" werd aangepast'); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | public function delete(string $key, $id, Request $request) |