An open API service indexing awesome lists of open source software.

https://github.com/peterfox/seo-demo

The code in this project is an example of how to create root level URLs for dynamic content without causing wildcard clashes
https://github.com/peterfox/seo-demo

Last synced: about 1 year ago
JSON representation

The code in this project is an example of how to create root level URLs for dynamic content without causing wildcard clashes

Awesome Lists containing this project

README

          

# Laravel SEO Slug Demo
This is a simple project I produced to demonstrate how to make
root level URL slug work with asimple service provider and the
Laravel router's defaults method.

You can read about it in my article
[The Power of Laravel’s Route ‘defaults’ for making
root level SEO pages](https://medium.com/@SlyFireFox/the-power-of-laravels-route-defaults-for-making-root-level-seo-pages-ae6da1d9fd51).

## Running it
To run it simply migrate a database and seeding it. Afterwards
you can run ```php artisan route:list``` which shows all the
routes generated. Try loading one or two of them up after
running ```php artisan serve```