I have this route defined inside a group
Route::group(['domain' => '{subdomain}.test.com'], function () {
Route::get('/models/{id?}', [
'as' => 'car-model',
'uses' => 'CarModelController@details'
]);
});
I want to avoid hardcoding URLs in blade
but that returs this url
ford.test.com/models
no model id!
Not sure if is relevant but in my controller CarModelController.php I defined
public function details($subdomain, $id)
why is not sending the id to the generated url? Do I need to send the $subdomain parameter to the detail function?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2aU7W0R
via IFTTT
Aucun commentaire:
Enregistrer un commentaire