Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 8, 2024 via composer

tightenco/ziggy v0.6.9

Generates a Blade directive exporting all of your named Laravel routes. Also provides a nice route() helper function in JavaScript.
Package summary
Share
6
issues
6
high severity
vulnerability
4
meta
2
3
licenses
46
MIT
2
BSD-3-Clause
1
Apache-2.0
Package created
4 Aug 2017
Version published
29 Oct 2018
Maintainers
2
Total deps
49
Direct deps
1
License
MIT

Issues

6

6 high severity issues

high
via: laravel/framework@v5.8.38
via: laravel/framework@v5.8.38
via: laravel/framework@v5.8.38
via: laravel/framework@v5.8.38
via: laravel/framework@v5.8.38
via: laravel/framework@v5.8.38
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
46 Packages, Including:
carbonphp/carbon-doctrine-types@3.2.0
doctrine/inflector@1.4.4
doctrine/lexer@1.2.3
dragonmantank/cron-expression@v2.3.1
egulias/email-validator@2.1.25
erusev/parsedown@1.7.4
laravel/framework@v5.8.38
league/flysystem@1.1.10
league/mime-type-detection@1.15.0
monolog/monolog@1.27.1
nesbot/carbon@2.72.3
opis/closure@3.6.3
paragonie/random_compat@v9.99.100
psr/clock@1.0.0
psr/container@1.1.2
psr/log@1.1.4
psr/simple-cache@1.0.1
ramsey/uuid@3.9.7
swiftmailer/swiftmailer@v6.3.0
symfony/console@v4.4.49
symfony/css-selector@v7.0.7
symfony/debug@v4.4.44
symfony/deprecation-contracts@v3.5.0
symfony/error-handler@v4.4.44
symfony/event-dispatcher@v4.4.44
symfony/event-dispatcher-contracts@v1.10.0
symfony/finder@v4.4.44
symfony/http-client-contracts@v2.5.3
symfony/http-foundation@v4.4.49
symfony/http-kernel@v4.4.51
symfony/mime@v5.4.39
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-iconv@v1.29.0
symfony/polyfill-intl-idn@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php72@v1.29.0
symfony/polyfill-php73@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/process@v4.4.44
symfony/routing@v4.4.44
symfony/service-contracts@v2.5.3
symfony/translation@v4.4.47
symfony/translation-contracts@v2.5.3
symfony/var-dumper@v4.4.47
tightenco/ziggy@v0.6.9

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
tijsverkoyen/css-to-inline-styles@v2.2.7
vlucas/phpdotenv@v3.6.10

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
phpoption/phpoption@1.9.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
ⓘ This is a list of tightenco/ziggy 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
laravel/frameworkv5.8.381.06 MBMIT
prod
6

Visualizations

Frequently Asked Questions

What does tightenco/ziggy do?

Tightenco/Ziggy is a versatile Laravel package that creates a Blade directive for exporting all your named Laravel routes, effectively bridging the gap between your Laravel backend and JavaScript frontend. The central tool it provides is a handy route() helper function that works just like Laravel's own, allowing you to use your Laravel named routes in JavaScript. By leveraging Ziggy, developers can seamlessly generate URLs for named routes, utilize parameters, and even apply route-model binding right from their JavaScript files. This makes the package particularly beneficial for projects that extensively incorporate AJAX requests and front-end frameworks, or when Laravel is used as a backend for an SPA or mobile application.

How do you use tightenco/ziggy?

To use the Tightenco/Ziggy package, first, install it in your Laravel app using composer:

composer require tightenco/ziggy

Then, add the @routes Blade directive to your main layout. This should come before your application's JavaScript to ensure the route() helper function is globally available:

// In your blade layout file
<head>
    ...
    @routes
    <script src="{{ mix('js/app.js') }}"></script>
</head>

You can now utilize Ziggy’s route() helper function in your JavaScript files. The route() helper works very much like Laravel's—you pass to it a route name, and any parameters you wish to send, and it will return a URL:

// Basic usage with no parameters
route('posts.index'); // returns 'https://your-domain.com/posts'

// Usage with parameters
route('posts.show', 1); // returns 'https://your-domain.com/posts/1'

Refer to the complete documentation in the Github ReadMe for advanced usage, setting up with different frameworks, route filtering options, and troubleshooting.

Where are the tightenco/ziggy docs?

The documentation for Tightenco/Ziggy is available on the project's Github ReadMe page at https://github.com/tighten/ziggy. The ReadMe contains detailed usage and setup instructions, examples, advanced setup options, and more. The documentation covers everything from installation to handling route filtering and working with different JavaScript frameworks. It is regularly updated to accommodate changes in the Laravel ecosystem and the evolving needs of developers. By referring to this documentation, developers can maximize the benefits of integrating their Laravel routes with JavaScript front-end.