laravel / folio

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

package routes #90

Closed jdion84 closed 1 year ago

jdion84 commented 1 year ago

Folio Version

1

Laravel Version

10

PHP Version

8

Description

what is the recommended way of declaring package routes to be handled by folio?

is it like this?:

    public function boot(): void
    {
        Folio::path(base_path('vendor/myname/mypackage/resources/views/pages'))->middleware([
            '*' => [
                //
            ],
        ]);
    }

Steps To Reproduce

see description

nunomaduro commented 1 year ago

We've documentation about this: https://github.com/laravel/folio#page-paths--uris.