folio-routing

Automates creation and management of file-based Laravel routes via Folio Blade files.

5|1|Updated Feb 17, 2024
One-click install
npx skills add https://github.com/karuhun-developer/template-laravel-livewire --skill folio-routing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: folio-routing
Source: https://github.com/karuhun-developer/template-laravel-livewire/tree/main/.cursor/skills/folio-routing
Command: npx skills add https://github.com/karuhun-developer/template-laravel-livewire --skill folio-routing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires laravel/folio, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of managing file-based routes in Laravel applications with Folio, providing a streamlined approach to route creation and management.

Core Features & Use Cases

  • File-based Routing: Automatically creates routes from Blade files within specified directories.
  • Route Listing: Lists available routes with php artisan folio:list.
  • Page Creation: Generates new pages and routes using php artisan folio:page.
  • Use Case: Ideal for rapid development where you need to create new pages and associated routes without manual intervention.

Quick Start

Create a new page for a product and its routes using the folio skill with the command 'php artisan folio:page products'.

Frequently Asked Questions about folio-routing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate file-based routing in Laravel using Folio?

Automating file-based routing in Laravel Folio involves using commands to generate routes directly from Blade files within specified directories. This interface maps page templates to URLs automatically, eliminating manual route definition.

What is the best way to create new pages and routes without manual intervention in Laravel?

The best way to create pages without manual intervention is using the `php artisan folio:page` command. This programmatically generates new Blade files and their associated routes instantly, ideal for rapid development workflows.

Do I need Laravel Folio installed to manage page-based routes programmatically?

Yes, you need the Laravel Folio package installed and properly configured in your application. This dependency provides the core mechanism required to map Blade files to routes automatically.

How can I list available file-based routes generated by Laravel Folio?

You can list available file-based routes by running the `php artisan folio:list` command. This outputs a comprehensive view of all currently registered page routes generated from your Blade files.

Does Laravel Folio work for rapid development of product pages and associated routes?

Yes, Laravel Folio works effectively for rapid development of product pages. By executing `php artisan folio:page products`, it instantly generates the required page template and associated route without manual setup.