Let's say I would like to implement a route that accepts email and a reference id
email: [email protected] ref_id: abcd1234 website.com/ticket/[email protected]&ref_id=abcd1234 how do I design this url in laravel? should I just use a get route?
Let's say I would like to implement a route that accepts email and a reference id
email: [email protected] ref_id: abcd1234 website.com/ticket/[email protected]&ref_id=abcd1234 how do I design this url in laravel? should I just use a get route?
Route::get('ticket/{email}/{ref_id}', 'YourController@YourMethod'); Please visit this link for more details about routes.
you should try this:
Route::get('ticket/email={email}/ref_id={ref_id}', 'YourController@metodName');