0
Currently my friend is having the same problems I had when trying to use Curl to consume the API, serving the application with php Artisan serves.
Is there a limitation that does not allow the use of Curl with Artisan serves? Because, although the extension is enabled in php.ini, the script has a long run time, until it is canceled by timeout and ultimately causes problems.
Already when I use some other HTTP server I don’t have this problem, only with Artisan serves.
The question is only for knowledge, as I have searched about it and found nothing related so far.
Use Curl to consume your Laravel-served API or use Curl within your Laravel-served API to consume any other Apis?
– Costamilam
@Costamilam, My friend is trying to consume, in the page controller, the API he created in the same application. But, from personal experience, I’ve had problems trying to consume other Apis and not succeed because Artisan serves.
– Getulio