question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ziggy v0.4.0 & v0.4.1 returns an object instead of string

See original GitHub issue

I tried Ziggy in Laravel 5.5 and it is returning an object instead of the full URL of the route like so

route('admin.articles.index')
// laravel 5.4 returns
"http://blog.dev/admin/articles"

// laravel 5.5 returns
{
  "name": "admin.articles.index",
  "urlParams": {},
  "queryParams": {},
  "absolute": true,
  "domain": "http://blog.dev/",
  "url": "admin/articles"
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:32 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
the94aircommented, Oct 12, 2017

@AidasK What about route('index').toString()? Does it return any thing?

3reactions
AidasKcommented, Oct 12, 2017

Yes, it returns my route url. This is the solution I am currently using, but it’s not short enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ziggy v0.4.0 & v0.4.1 returns an object instead of string #69
I tried Ziggy in Laravel 5.5 and it is returning an object instead of the full URL of the route like so route('admin.articles.index') ......
Read more >
tightenco/ziggy - Packagist
Generates a Blade directive exporting all of your named Laravel routes. Also provides a nice route() helper function in JavaScript.
Read more >
@livechat/chat.io-customer-sdk - npm
We authenticate your sessions by using chat.io-customer-auth package and expose the created auth object on the returned SDK's instance.
Read more >
[ROM][4.1.2] █║ Axis (SDS) ¯`•._ AxisM ... - XDA Forums
Anyway to have the double button press to be reactivated? It is nulled and nothing appears when doing so? Neither can I find...
Read more >
jVr - River Thames Conditions - Environment Agency - GOV.UK
Motojima, Pacific wave roof color, Leipzig messestadt, Cheap day return bedford to ... American fork canyon open 2012, Viens chez moi kendji, Vo...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found