Skip to content

Commit d88ca79

Browse files
committed
- Changed model view partial to use search-form
1 parent da4a85b commit d88ca79

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

stubs/views/model/model.blade.stub

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
@section('page-title', __('{{pluralTitle}}'))
55

66
@section('top-search')
7-
@include('admin.partials.search-model', [
8-
'search_route' => 'admin.{{pluralKebab}}.index',
9-
'search_placeholder' => __('Search for {{pluralLower}}...'),
10-
])
7+
<x-forms::search-form route="admin.{{pluralKebab}}.index" :placeholder="__('Search for {{pluralLower}}...')" />
118
@endsection
129

1310
@section('model-actions')

tests/stubs/views/products/products.blade.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
@section('page-title', __('Products'))
55

66
@section('top-search')
7-
@include('admin.partials.search-model', [
8-
'search_route' => 'admin.products.index',
9-
'search_placeholder' => __('Search for products...'),
10-
])
7+
<x-forms::search-form route="admin.products.index" :placeholder="__('Search for products...')" />
118
@endsection
129

1310
@section('model-actions')

0 commit comments

Comments
 (0)