Often, you'll need to construct a route that accepts a wildcard value. For example, when viewing a specific post, part of the URI will need to be unique. In these cases, we can reach for a route wildcard.
app/Models
directory. This means an App\Post
namespace should now be App\Models\Post
.