Closed adam-godfrey closed 1 year ago
You may run into trouble with the non-uniqueness of date strings, but this is ultimately a Laravel problem. This package will play nice with whatever model Laravel throws its way.
Now that you're using Laravel's route model binding, you'll just need to figure out how to "resolve" your blog post model via your desired parameters.
See https://laravel.com/docs/10.x/routing#customizing-the-resolution-logic
Everything is working fine but this is just a query to see if we can us a date instead of an id to get the post.
I want a url like example.com/blog/2023-05-31/this-is-a-test-post. I've seen it done on other sites but not sure if it can be done with tis pacakge.
A recap...
{{ Breadcrumbs::render('blog.show', $blog) }}