Closed froberts0n closed 1 year ago
Well, guess what! Just read the code and found out that "-" works! Closing it now! :) Sorry!
Don't be sorry 😌 It's a golden tip because it's not in the Laravel documentation. Although my production server runs on GNIX, the testserver is on a windows 10 computer with XAMPP & PHP 8.2.
Folio Version
1.0.0-beta.4
Laravel Version
10.18.0
PHP Version
8.2.8
Description
When trying to create a page named
[Model:key].blade.php
for model binding, Windows won't allow ":" in file names.I don't know if we could use an alternate character on Windows, or if we could just add another character with the same effect but that would be valid on Windows (so Linux users would have 2 ways of writing it).
On Windows, these are illegal characters in filenames: \ / : * ? " < > |
So I guess we could use characters that are illegal in PHP classes and function names such as: ! @ # $ % & ; , . ~
I'm sorry because I love the ":" separator, it's very clear and nice. Just unusable on Windows.
Steps To Reproduce
On Windows
Creates an empty folder named "thing" instead.