Slug is used to define custom Url based on the title .it gives users SEO-friendly way to access it through the URL.
http://holidaylandmark/city/Mumbai
Creating Slug Field in Table:
Syntax:
Save Slug in Database using store function
Pass Slug id in Button
Use Slug Id In Show Function
Setting Slug IN Routing
Click Image To Show Slug
http://holidaylandmark/city/Mumbai
mumbai city is slug url
Latest posts by Rakesh Dev (see all)
- How to Cope with Programming Homework Faster - April 9, 2023
- CRUDUSING API IN Flutter (Part 1) - December 4, 2020
- Scaffold class in Flutter - December 3, 2020