So I have a route defined in my web.php, like so....
Route::any('/items/{id}/{slug}', 'Items\ItemController@item')->name('items.item');
I am trying to make a function where I can get the string pattern for the URL, '/items/{id}/{slug}' from the route by calling it's name...
I assumed this would work.. but it doesn't (it tells me I'm missing the parameters id and slug).
// Should assign the string 'items/{id}/{slug}' to the variable.
$url_pattern = route('items.item');
I'm using Laravel 5.3.