laravel/folio
Laravel Folio is a page-based router for Laravel that maps routes from your filesystem to simplify routing. Define pages as files, reduce route boilerplate, and build apps faster with a clean, convention-driven approach.
Route::get() definitions with auto-discovered routes, reducing boilerplate and improving maintainability.ViewMatched). This ensures seamless compatibility with existing Laravel features like route caching, named routes, and middleware.admin., api.) and terminable middleware, making it suitable for multi-tenant or modular applications.composer require laravel/folio, php artisan folio:install). The package auto-discovers views in resources/views (or custom paths) and generates routes dynamically.ViewMatched), allowing integration with existing auth, caching, or logging layers.route:cache command, improving performance in production./blog and /blog/index) may require explicit naming or priority rules to avoid ambiguity. Folio’s lazy command execution (v1.1.7+) mitigates this but demands upfront planning for complex route hierarchies./products/{slug}) that are harder to change later. Requires strategic alignment with SEO and content strategy early./products/{category}) needed, or can they be handled via view files (e.g., resources/views/products/{category}.blade.php)?routes/web.php?app().ViewMatched event for custom logic when a view is resolved.folio:install, folio:list, folio:make for CLI-driven workflows./posts/{post} → Post model).routes/web.php to identify candidates for Folio (e.g., static pages, content-heavy routes).resources/views/pages/about.blade.php → /about).composer require laravel/folio.php artisan folio:install to configure default paths (or customize in config/folio.php)./about, /contact) and test thoroughly.php artisan folio:list to verify auto-generated routes.routes/web.php and use Folio for content routes.Route::name()) and middleware to ensure consistency.spatie/laravel-permission).ViewMatched events and folio:list for assertions.slug.blade.php → /{slug}).config/folio.php (paths, middleware, exclusions).php artisan folio:install and verify auto-discovery./about, /privacy)./posts/{slug}).php artisan folio:list.php artisan route:cache).config/folio.php).Route::get() definitions for file-based routes.folio:make, folio:list) simplify management.kebab-case for URLs).php artisan folio:list to audit.How can I help you explore Laravel packages today?