Skip to content

Commit 11b3a4a

Browse files
[10.x] Folio: Customizing the key - Ability to use the minus sign (#9099)
* update folio docs to include a note about - when customizing the key * formatting --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent fc38905 commit 11b3a4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

folio.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ Captured models can be accessed as variables within your Blade template. The mod
187187

188188
Sometimes you may wish to resolve bound Eloquent models using a column other than `id`. To do so, you may specify the column in the page's filename. For example, a page with the filename `[Post:slug].blade.php` will attempt to resolve the bound model via the `slug` column instead of the `id` column.
189189

190+
On Windows, you should use `-` to separate the model name from the key: `[Post-slug].blade.php`.
191+
190192
#### Model Location
191193

192194
By default, Folio will search for your model within your application's `app/Models` directory. However, if needed, you may specify the fully-qualified model class name in your template's filename:

0 commit comments

Comments
 (0)