Skip to content

Commit 3333ae7

Browse files
committed
fix
1 parent 7caf587 commit 3333ae7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Http/Requests/CustomService/CustomServiceRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function rules(): array
2121
'title'=>['required','string','max:255'],
2222
'description'=> ['required', 'string'],
2323
'link'=> ['required', 'starts_with:https://,http://'],
24-
'image'=> ['sometimes','required','image', 'max:5124']
24+
'image'=> ['nullable','image', 'max:5124']
2525
];
2626
}
2727
}

resources/views/backend/service/custom/edit.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<x-backend.form.select-input id="page_name" label="Page Name" name="page_name"
2222
placeholder="Choose page name...">
2323
@foreach ($pageNames as $name)
24-
<option value="{{ $name }}" @selected(str($service->page_name)->trim() === str($name)) >
24+
<option value="{{ $name }}" @selected(str($service->page_name)->trim() === str($name->value))>
2525
{{ $name }}
2626
</option>
2727
@endforeach

0 commit comments

Comments
 (0)