Comments (6)
I like it. I'd want to think through what the client side would look like a little.
from ziggy.
I personally love this addition, I currently work with Quasar alot which prevents me from using a blade directive.
from ziggy.
@HawkLeaf would it be useful to you if we provided the route()
helper as a dynamically compiled JS file as well? If so, would you rather have both together, or separate endpoints for route json and the helper JS?
Might be overthinking this but it could be pretty cool.
from ziggy.
I don't think it'd hurt to implement both. I think though that if someone were to use that route they'd already have access to the helper JS though. Then again, I might not be the right person to ask as my experience with this type of communication between apps is very limited.
from ziggy.
+1 for
separate endpoints
so you can use the global helper for whatever & the route for the little secrets you want to keep away but i think this will make more sense if we have a whitelist / blacklist
to what show up at which end point.
from ziggy.
I'm going to close this issue. I would accept a PR for it, but it's not super related to current roadmap.
from ziggy.
Related Issues (20)
- False negative with route().current() and nested params
- Using `route()->current('...*')` multiple time issue
- Arrow function given to Event::listen stops further propagating of the event HOT 2
- Vue Plugin isnt delivered with Composer package
- Laravel 11 support HOT 2
- Class "Tightenco\Ziggy\Ziggy" Not Found After Upgrading to Laravel 11 HOT 2
- This package does not work with Folio named routes HOT 1
- Passing Ziggy configuration to Inertia.js SSR in a Svelte app
- TypeError when optional params omitted from array
- package does not handle a Vue 2 codebase well HOT 1
- Vue: Cannot convert undefined or null to object
- Feature: Add ```route().queryParams``` to get only query params without laravel route params
- Export Helper type to get the parameters type of specific route
- Missing alert or Logic problem on current route method
- Ziggy generates URL with a double leading slash HOT 6
- Error message : Ziggy is not defined
- Add an option for strict route checking HOT 2
- "Resolving Infinite Loop Issues in resolveBindings Function"
- Ziggy generating wrong params for resources with param url HOT 5
- Ziggy route() helper TypeError: Cannot read properties of undefined (reading 'home.index') HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ziggy.