I try to create webhook with laravel mongodb
api.php
Route::post('trelloCallback', 'TrelloController@store');
Controller
public function store(Request $request)
{
Trello::create($request->json()->all());
return response()->json([
'message' => 'success',
'status' => Response::HTTP_OK
]);
}
but got response
Unirest\Response Object
(
[code] => 400
[raw_body] => {"message":"URL (https://da9b0a1782fe.ngrok.io/api/trelloCallback) not reachable. Error: ESOCKETTIMEDOUT","error":"ERROR"}
[body] => stdClass Object
(
[message] => URL (https://da9b0a1782fe.ngrok.io/api/trelloCallback) not reachable. Error: ESOCKETTIMEDOUT
[error] => ERROR
)
)how to solve this?
Thank you
just need real domain