tolgahanbayraktar / seo-demo

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

Home Page:https://medium.com/@SlyFireFox/the-power-of-laravels-route-defaults-for-making-root-level-seo-pages-ae6da1d9fd51

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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

About

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

https://medium.com/@SlyFireFox/the-power-of-laravels-route-defaults-for-making-root-level-seo-pages-ae6da1d9fd51


Languages

Language:PHP 95.8%Language:HTML 3.5%Language:Vue 0.7%