@@ -1087,7 +1087,7 @@ the ``#[LiveArg()]`` attribute::
1087
1087
}
1088
1088
1089
1089
Normally, the argument name in PHP - e.g. ``$id `` - should match the
1090
- argument named used in Twig ``id={{ item.id }} ``. But if they don't
1090
+ argument name used in Twig ``id={{ item.id }} ``. But if they don't
1091
1091
match, you can pass an argument to ``LiveArg ``, like we did with ``itemName ``.
1092
1092
1093
1093
Actions and CSRF Protection
@@ -1153,7 +1153,7 @@ the component now extends ``AbstractController``! That is totally
1153
1153
allowed, and gives you access to all of your normal controller
1154
1154
shortcuts. We even added a flash message!
1155
1155
1156
- .. _files
1156
+ .. _files :
1157
1157
1158
1158
Uploading files
1159
1159
---------------
@@ -1172,7 +1172,7 @@ to handle the files and tell the component when the file should be sent:
1172
1172
<button data-action="live#action" data-action-name="files|my_action" />
1173
1173
</p>
1174
1174
1175
- To send a file (or files) with an action use `files ` modifier.
1175
+ To send a file (or files) with an action use `` files ` ` modifier.
1176
1176
Without an argument it will send all pending files to your action.
1177
1177
You can also specify a modifier parameter to choose which files should be upload.
1178
1178
@@ -1191,7 +1191,7 @@ You can also specify a modifier parameter to choose which files should be upload
1191
1191
<button data-action="live#action" data-action-name="files|myAction" />
1192
1192
</p>
1193
1193
1194
- The files will be available in a regular `$request->files ` files bag::
1194
+ The files will be available in a regular `` $request->files ` ` files bag::
1195
1195
1196
1196
// src/Components/FileUpload.php
1197
1197
namespace App\Components;
@@ -1219,8 +1219,8 @@ The files will be available in a regular `$request->files` files bag::
1219
1219
.. tip ::
1220
1220
1221
1221
Remember that in order to send multiple files from a single input you
1222
- need to specify `multiple ` attribute on HTML element and end `name `
1223
- with `[] `.
1222
+ need to specify `` multiple `` attribute on HTML element and end `` name ` `
1223
+ with `` [] ` `.
1224
1224
1225
1225
.. _forms :
1226
1226
0 commit comments