laravel / folio

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

Missing URI prefix when calling `php artisan folio:list` #125

Closed jozydapozy closed 10 months ago

jozydapozy commented 10 months ago

Folio Version

1.1.4

Laravel Version

10.32.1

PHP Version

8.2.4

Description

When I run php artisan folio:list, the returned path is missing the URI-prefix when specified.

I get this: GET /test ......

I expect the result to be this: GET /foo/test ......

Steps To Reproduce

Put this method in your FolioServiceProvider:

   /**
     * Bootstrap services.
     */
    public function boot(): void
    {
        Folio::path(resource_path('foobar'))->middleware([
            '*' => [
                //
            ],
        ])->uri('foo/');
    }

run php artisan folio:list

crynobone commented 10 months ago

I was able to replicate this issue with basic installation.