根據模型創建collection: php artisan make:resource Users--collection
根據自定義創建collection:php artisan make:resource UserCollection
在控制器通過 return new?UserCollection(model->all);返回數據
根據模型創建collection: php artisan make:resource Users--collection
根據自定義創建collection:php artisan make:resource UserCollection
在控制器通過 return new?UserCollection(model->all);返回數據