I have a problem with this one route.
Route::get('va/{$uniqueid}','AdminController@VaShow')->name('va');
and in controller:
public function VaShow($uniqueid = '123'){
dd($uniqueid);
}
but i still get NotFoundHttpException when trying to visit route. (it have admin prefix but anyway i'm trying to access it directly with url and in view but still same) in view:
{{route('va',['uniqueid'=>$v->uniqueid])}}
and I checked in route:list, its there:
| | GET|HEAD | admin/va/{$uniqueid} | va | App\Http\Controllers\AdminControl
ler@VaShow | web,admin |
No idea what I did wrong
The dollar sign in your route is throwing it off. The variables in the route do not need a dollar sign:
Route::get('va/{uniqueid}','AdminController@VaShow')->name('va');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With