Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 23c6d33

Browse files
committed
Update README
1 parent dd692a9 commit 23c6d33

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ Add the resource to webpack.mix.js:
2020
mix.js("resources/js/routes", "public/js");
2121
```
2222

23+
Or add route function to bootstrap.js as stated in #1 by @clandestine8
24+
25+
```js
26+
window.route = require('./routes.js').route;
27+
// You can't use absolute routes with this method.
28+
```
29+
2330
If you want to use absolute urls, you need to have `MIX_APP_URL` .env var
2431

2532
And to use it, you need to import it

0 commit comments

Comments
 (0)