I am trying to create restAPI in Laravel. How can I secure an SQL query like this from sql injection?

```
Route::get('api/restaurant/id/{id}', 'RestaurantController@getRestaurantById');

public function getRestaurantById($id) {
        $restaurant = Restaurant::where('id', $id)->first();

        return $restaurant;
    }

```