How to generate resource controllers in Laravel

php artisan make:controller UserController --model=User
php artisan make:controller PostController --model=Post
Route::resources([
    'users' => UserController::class,
    'posts' => PostController::class,
]);