I'm trying to insert the route according to the positus whatsapp api documentation in laravel 9, however, an error occurs in the route, could someone help me?
CodePudding user response:
You cannot use positional argument after named arguments.
So you should use named arguments for every argument, or none at all.
Route::post('uri', 'action');
// OR
Route::post(uri: 'uri', action: 'action');
CodePudding user response:
Should not be:
Route::post(uri: 'webhook',....
Should instead be:
Route::post('webhook', function(...