how done declare route? such "site.domain / x / {id} / y" ... because in routes have similar
route :: ( '/x', function () { $var = var::all(); return view ('pages.view') -> withvars ($var); });
but in path "/x" need access site after id said in example
site.domain /x/{id}/y
you can doing route:
route::get( '/x{id}/y', function ($id) { // return view ('pages.view') -> withvars ($var); });
Comments
Post a Comment