Skip to content

Commit 0301a6b

Browse files
committed
- Added action prop to search-form
Signed-off-by: Arushad Ahmed <dash-8x@hotmail.com>
1 parent 0908901 commit 0301a6b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

resources/views/bootstrap-5/search-form.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<x-forms::form :action="route($route, $params)" class="search" :method="$method" :framework="$framework" :files="$files">
1+
<x-forms::form :action="$action ?: route($route, $params)" class="search" :method="$method" :framework="$framework" :files="$files">
22
<x-forms::text
33
:name="$name"
44
:placeholder="$placeholder ?: trans('forms::strings.search_form_placeholder')"

resources/views/material-admin-26/search-form.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<x-forms::form :action="route($route, $params)" class="search" :method="$method" :framework="$framework" :files="$files">
1+
<x-forms::form :action="$action ?: route($route, $params)" class="search" :method="$method" :framework="$framework" :files="$files">
22
<div class="search__inner">
33
<x-forms::text
44
:name="$name"

src/Views/Components/SearchForm.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class SearchForm extends Form
1515
*/
1616
public function __construct(
1717
public string $name = 'search',
18+
public string $action = '',
1819
public string $route = '',
1920
public array $params = [],
2021
public string $placeholder = '',

0 commit comments

Comments
 (0)