laravel / folio

Page based routing for Laravel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty segments in multi-segment wildcard views are not possible

inmanturbo opened this issue · comments

Folio Version

1.1.3

Laravel Version

10.4.1

PHP Version

8.2.11

Description

Consider the following view: resources/views/pages/users/[...ids].blade.php

<ul>
    @forelse(\App\Models\User::whereIn('id', $ids)->get() as $user)
       <li>{{ $user->email }}</li>
    @empty
       <li>No users available</li>
    @endforelse
</ul>

When you browse to /users you might expect to see 'No users available', however instead you will get 404.

Steps To Reproduce

Install folio and paste the above contents into resources/views/pages/users/[...ids].blade.php, then browse to '/users' in your application

Seems you already sent in a PR so let's see how it goes. Thanks 👍