php artisan make:controller subfolder/SomeController
//if you don't have sub folder
php artisan make:controller AppHttpControllersApi/TestApiController --api
//if you have sub folder already exist
php artisan make:controller ApiTestApiContorller --api
<?php
namespace AppHttpControllers est;
use IlluminateHttpRequest;
use AppHttpControllersController;
class TestController extends Controller
{
public function getTest()
{
return "Yes";
}
}