-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid wrapping Artisan command --url option with url() helper when po…
…ssible (#361) * Add sometimes-failing test for edge cases * Only wrap URL passed to artisan command if it is present and not valid * Remove edge case test and rename pathname one * Simplify URL wrapping
- Loading branch information
1 parent
fa91156
commit 865333a
Showing
3 changed files
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const Ziggy = {"url":"http:\/\/ziggy.dev\/foo\/bar","port":null,"defaults":{"locale":"en"},"routes":{"postComments.index":{"uri":"posts\/{post}\/comments","methods":["GET","HEAD"]}}}; | ||
|
||
if (typeof window !== 'undefined' && typeof window.Ziggy !== 'undefined') { | ||
for (let name in window.Ziggy.routes) { | ||
Ziggy.routes[name] = window.Ziggy.routes[name]; | ||
} | ||
} | ||
|
||
export { Ziggy }; |