Do you have the api segment in the full URL that you are trying to visit, e.g. https://core.domain.com/api/process/rg?
Jan 27, 2025
7
Level 4
API returns 404
Hello,
I tried to create my first API so I decided to create the route in the web.php file. Got a 419 due to CSRF.
So I followed a guide and installed api using
php artisan install:api
and into the api.php that appeared I placed my api
Route::domain('core.domain.com')->group(function () {
Route::post('/process/rg', [RocketgateController::class, 'postback']);
});
However when I tried to call for it I get a 404 error.
What's wrong I'm doing? I have edited the real domain to domain.com for privacy to the client.
Thanks, S
Please or to participate in this conversation.