Ziggy

Ziggy

Use your Laravel named Routes inside JavaScript


Description

Using Laravel Named Routes Within JavaScript

Overview

Ziggy offers a route() helper function for JavaScript that mirrors the functionality of Laravel’s native route helper. This enables seamless access to your application’s named routes directly from client‑side code.

How It Works

A Blade directive is generated and can be included in your views. When rendered, it exports:

  • A JavaScript object containing all of your application's named routes, indexed by their aliases.
  • A global route() function that allows you to generate URLs for these routes within your JavaScript logic.

Related Projects

Laravel Artifact

Laravel Artifact

Media Management Package

Mirror

Mirror

Impersonation Package

LaravelPlus Updater

LaravelPlus Updater

Sync Laravel Projects

Laravel Credits

Laravel Credits

Credit Management System

Laravel Glider

Laravel Glider

Glide Image Manipulation in Blade Templates

Laravel Ownable

Laravel Ownable

Eloquent Ownership Relationships