$ php artisan make:controller ProductController --api --model=Product
Sometimes, you may copy it from a website or document which can make the double dash appear as special characters in the command when it is executed. Double check to make sure that the syntax is correct before you execute the command again.