Skip to content

Commit 11d6baa

Browse files
committed
Add advanced configuration section
1 parent 4112ab5 commit 11d6baa

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,15 @@ php artisan migrate
1919

2020
finally, paste ``` ShortUrl::routes(); ``` at the end of ``` routes/web.php ```
2121

22-
Nice! Laravel short url is now set up on your homepage.
22+
### Advanced configuration
23+
24+
Instead of adding ``` ShortUrl::routes(); ``` you can call three separates methods:
25+
- ``` ShortUrl::createRoutes(); ``` to shorten urls
26+
- ``` ShortUrl::manageRoutes(); ``` to manage urls
27+
- ``` ShortUrl::redirectRoute(); ``` to redirect to the url
28+
29+
this allows you to add middlewares or prefix routes.
30+
31+
## Nice!
32+
33+
Laravel short url is now set up on your homepage.

0 commit comments

Comments
 (0)