How to generate API resource controllers in Laravel php artisan make:controller PostController --model=Post --api Route::apiResource('posts', PostController::class);