i am using laravel 5.5 when i want to hit the route it shows the following error like (Sorry, the page you are looking for could not be found) but i completely fail to understand it it google it several time but not work any body help to solve this thanks in advance.
this is my route
Route::get('order/{$id}', 'front\FrontController@order');
Route::get('booking/{$id}', 'front\FrontController@booking');
this is my controller
public function index(){
$categorys = DB::table('categories')->where('cate_status', '=', 'enable')->get();
$rooms = DB::table('rooms')->where('status', '=', 'Enable')->get();
return view('welcome', compact('categorys','rooms'));
}
public function order($id){
echo $id;
}
public function booking($id){
echo $id;
}
this is my views
@foreach($categorys as $category)
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="hover-content">
<a href="{{url('order/'.$category->id)}}">
<img src="{{asset('assets/site')}}/images/menu/thumb/{{$category->cate_img}}" alt="chinese" class="img-responsive animation">
<div class="overlay animation">
<h4 class="text-uppercase">{{$category->cate_name}}</h4>
</div>
</a>
</div>
</div>
@endforeach