How to create query string with id in route get method using laravel 5?

Posted in CategoryLaravel
  • C
    Chithira selvi 5 months ago

    how to create query string with id in route get method using laravel 5

  • H
    Hardik Savani 5 months ago

    Yes sure you can pass query string with an id with your route as below example:

    url("/posts/?id={$post->id}");
    route('getPost',['id'=>$id])

    Let's try this one...

Please login or register to leave a response.

* You May Also Like Bellow Issue to check *