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
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
$ php artisan make:folio things/[Thing:number]
INFOPage [C:\laragon\www\application\resources\views\pages/things/[Thing:number].blade.php] created successfully.
Creates an empty folder named "thing" instead.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: