laravel / folio

Page based routing for Laravel.
MIT License
568 stars 46 forks source link

Nested model route binding keeps disabling views #117

Closed gdsrmygdsrjr closed 12 months ago

gdsrmygdsrjr commented 1 year ago

Folio Version

1.1.3

Laravel Version

10.28.0

PHP Version

8.2.10

Description

When using Folio I'm unable to display a create page when a subfolder [id] exists. The index page is however correctly displayed.

Steps To Reproduce

Here's what my pages folder look like: Captura de tela 2023-10-10 200036

And here's what php artisan folio:list shows: Captura de tela 2023-10-10 200443

The admin/properties/index.blade.php works perfectly The admin/properties/[id]/index.blade.php works perfectly The admin/properties/[id]/edit.blade.php works perfectly The admin/properties/create.blade.php ERROR, it is working as admin/properties/[id]/index.blade.php, as I show below: Captura de tela 2023-10-10 200943

If I remove the "admin/properties/[id]" folder the create page is displayed.

nunomaduro commented 12 months ago

Can you create an Laravel application that faces this issue, push it to GitHub, an give me the link so I can try it locally please?

gdsrmygdsrjr commented 12 months ago

Of course! it's here: folio-issue-project

nunomaduro commented 12 months ago

Duplicated of https://github.com/laravel/folio/issues/120.