You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
['key' => 'redirect', 'type' => 'string', 'description' => 'The URL the user will be taken to after submitting the form. If left blank, the user will stay on the same page.'],
173
+
['key' => 'error_redirect', 'type' => 'string', 'description' => 'The URL the user will be taken to after a failed form submission. If left blank, the user will stay on the same page.'],
174
+
['key' => 'request', 'type' => 'string', 'description' => 'The name or fully qualified classname of the [form request](https://laravel.com/docs/master/validation#creating-form-requests) that should be used to validate the form submission. For example: `AddToCartRequest` will map to `App\Http\Requests\AddToCartRequest`.'],
175
+
]"
176
+
/>
177
+
@endblade
178
+
166
179
### Fields
167
180
This form supports the following fields:
168
181
@@ -213,6 +226,21 @@ This tag allows you to update a line item in the customer's cart. You can either
213
226
214
227
Inside the `{{ cart:update_line_item }}` tag, you have access to the line item's data, allowing you to pre-fill values.
215
228
229
+
### Parameters
230
+
This tag supports the following parameters:
231
+
232
+
@blade
233
+
<x-tag-parameters
234
+
:parameters="[
235
+
['key' => 'product', 'type' => 'string', 'required' => true, 'description' => 'The ID of the product you wish to update. Required when `line_item` isn\'t present.'],
236
+
['key' => 'line_item', 'type' => 'string', 'required' => true, 'description' => 'The ID of the line item you wish to update. Required when `product` isn\'t present.'],
237
+
['key' => 'redirect', 'type' => 'string', 'description' => 'The URL the user will be taken to after submitting the form. If left blank, the user will stay on the same page.'],
238
+
['key' => 'error_redirect', 'type' => 'string', 'description' => 'The URL the user will be taken to after a failed form submission. If left blank, the user will stay on the same page.'],
239
+
['key' => 'request', 'type' => 'string', 'description' => 'The name or fully qualified classname of the [form request](https://laravel.com/docs/master/validation#creating-form-requests) that should be used to validate the form submission. For example: `AddToCartRequest` will map to `App\Http\Requests\AddToCartRequest`.'],
240
+
]"
241
+
/>
242
+
@endblade
243
+
216
244
### Fields
217
245
This form supports the following fields:
218
246
@@ -300,6 +328,19 @@ This tag allows you to update the customer's cart. Allowing you to update everyt
300
328
301
329
Inside the `{{ cart:update }}` tag, you have access to the cart's data, allowing you to pre-fill values.
302
330
331
+
### Parameters
332
+
This tag supports the following parameters:
333
+
334
+
@blade
335
+
<x-tag-parameters
336
+
:parameters="[
337
+
['key' => 'redirect', 'type' => 'string', 'description' => 'The URL the user will be taken to after submitting the form. If left blank, the user will stay on the same page.'],
338
+
['key' => 'error_redirect', 'type' => 'string', 'description' => 'The URL the user will be taken to after a failed form submission. If left blank, the user will stay on the same page.'],
339
+
['key' => 'request', 'type' => 'string', 'description' => 'The name or fully qualified classname of the [form request](https://laravel.com/docs/master/validation#creating-form-requests) that should be used to validate the form submission. For example: `AddToCartRequest` will map to `App\Http\Requests\AddToCartRequest`.'],
0 commit comments