I would like to add nice Slug
URL to my Laravbel Project. I currently am using ID numbers.
My goal is to continue using Numbers but also to use Slugs for better SEO URL's. So either a Slug or an ID will load the proper page.
Below is my current Route
that uses an ID number to load a record.
// View Campaign Details/Profile/Map View
Route::any("/campaign/{id}", array(
"as" => "campaign/{id}",
"uses" => "CampaignController@getCampaignMap"
));
To be able to add Slug support in Laravel 4. I believe I need to add a slug database column to my campaigns table.
How would I go about editing my Route to work with an ID number of a slug string?
Also since I am only wanting to use slug on a couple sections of my application, how would I do my.htaccess for this, or is an.htaccess even required?