Hello guys I'm trying to run the make controller command but it throwing me an error. Here is the error
[ErrorException]
Use of undefined constant CURLE_COULDNT_RESOLVE_HOST - assumed 'CURLE_COULD
NT_RESOLVE_HOST'
and here is the command that I'm trying to run
php artisan make controller PetsController --resource
I have googled this issue what I got were solution for php Amazon sdk. Please tell me why am I facing this issue
php artisan make:controller PetsController --resourcephp artisancommands in the context of your server. That is, if you're using vagrant, SSH into your server first usingvagrant sshand then run your commands. Also, you're missing:betweenmakeandcontroller, it should bephp artisan make:controller PetsController --resource