Solve your laravel problems.
Route::get('/restaurant-detail/{id}', [ // 'as' => 'restaurant-detail-{id}', // is this legal? 'uses' => 'RestaurantsController@getRestaurantDetail' ]);
How would you get the value of {id} if this is not legal?