Search by

nrzamirho3in / cute-routes

nrzAmirHo3in

Visualise your Laravel routes in a beautiful and cute format.

Package info

github.com/nrzAmirHo3in/cute-routes

Language:Blade

pkg:composer/nrzamirho3in/cute-routes

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.0 2026-11-10 09:35 UTC

This package is auto-updated.

Last update: 2026-11-10 09:38:02 UTC


README

Latest Version Total Downloads License Laravel Version

Cute Routes Screenshot

A beautiful, modern route viewer for Laravel applications. Visualize all your application routes in a clean, searchable, and filterable interface built with Tailwind CSS.

✨ Features

  • 🎨 Modern UI — Clean, responsive design powered by Tailwind CSS
  • 🔍 Real-time Search — Instantly filter routes by name, action, or middleware
  • 🏷️ HTTP Method Filters — Filter routes by GET, POST, PUT, PATCH, DELETE, etc.
  • ↕️ Sortable Columns — Click any column header to sort
  • 🎯 Color-coded Methods — Each HTTP method has its own distinct color
  • ⚙️ Highly Configurable — Customize URL, middlewares, and visibility rules
  • 🔒 Debug-safe — Automatically disabled in production (configurable)
  • 🚀 Zero Configuration — Works out of the box with Laravel's auto-discovery

📋 Requirements

  • PHP ^8.0
  • Laravel ^9.0 | ^10.0 | ^11.0 | ^12.0 | ^13.0

📦 Installation

Install the package via Composer:

composer require nrzamirho3in/cute-routes

If you're using Laravel's auto-discovery (Laravel 5.5+), you're all set!

Otherwise, manually add the service provider to your config/app.php:

'providers' => [
    // ...
    CuteRoutes\ServiceProvider::class,
],

🚀 Usage

Once installed, simply visit:

http://your-app.local/routes

And you'll see a beautiful list of all your application routes.

💡 Note: By default, the viewer is only accessible when APP_DEBUG=true in your .env file.

⚙️ Configuration

Publish the configuration file to customize the package:

php artisan vendor:publish --provider="CuteRoutes\ServiceProvider"

This will create a config/cute-routes.php file. Available options:

return [
    // The URL endpoint to access the routes viewer
    'url' => 'routes',

    // Middleware(s) applied to the routes page
    'middlewares' => [],

    // Only enable when APP_DEBUG is true
    'debug_only' => true,

    // HTTP methods to hide from the list
    'hide_methods' => ['HEAD'],

    // Hide routes matching these regex patterns
    'hide_matching' => [
        '#^_debugbar#',
        '#^_ignition#',
        '#^routes$#',
    ],
];

🔐 Protecting in Production

If you want to enable the viewer in production (not recommended), set debug_only to false and protect it with middleware:

'middlewares' => ['auth', 'admin'],

🎨 Preview

Feature Description
🔍 Search Filter by route name, controller action, or middleware
🎯 Method Badges Color-coded badges for GET, POST, PUT, PATCH, DELETE
↕️ Sorting Click column headers to sort ascending/descending
📱 Responsive Works perfectly on desktop, tablet, and mobile

🤝 Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request on GitHub.

📄 License

This package is open-sourced software licensed under the MIT license.

🙏 Credits

If you find this package useful, please consider giving it a ⭐ on GitHub!