Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
This is an archived project. Repository and other project resources are read-only.
Laravelium
Sitemap
Wiki
Generate sitemap on LUMEN
Generate sitemap on LUMEN
· Changes
Page history
Replace Route for $app
authored
Jan 26, 2017
by
Eduardo Leoni
Hide whitespace changes
Inline
Side-by-side
Generate-sitemap-on-LUMEN.md
View page @
ba6de83a
...
@@ -52,7 +52,7 @@ Also in the `bootstrap/app.php`, add the following:
...
@@ -52,7 +52,7 @@ Also in the `bootstrap/app.php`, add the following:
Finally, add the following to your `
routes/web.php
`
Finally, add the following to your `
routes/web.php
`
`
``
php
`
``
php
Route::
get('mysitemap', function(){
$app->
get('mysitemap', function(){
// create new sitemap object
// create new sitemap object
$sitemap = app()->make("sitemap");
$sitemap = app()->make("sitemap");
...
...