Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravelresources

Laravelresources Laravel Package

tiagomichaelsousa/laravelresources

Laravel package that streamlines API development by generating resource classes and collections for your Eloquent models via simple Artisan commands. Skip repetitive boilerplate and scaffold consistent JSON transformations for cleaner, faster Laravel APIs.

View on GitHub
Deep Wiki
Context7

Speed Up package development for Laravel Apps with API's

Frequently asked questions about Laravelresources
What is tiagomichaelsousa/laravelresources used for?
It is a Laravel package that helps you scaffold API resource classes and resource collections for Eloquent models using Artisan commands. It reduces repetitive boilerplate so your API JSON transformations stay consistent. It is aimed at Laravel applications that expose APIs.
How do I install tiagomichaelsousa/laravelresources?
Install it with Composer and use Laravel package auto-discovery if the package supports it. Because the release notes are sparse, install it in a dedicated branch, confirm service provider registration, and check whether any config needs publishing. Run your application tests after installation.
Does laravelresources support Laravel 10?
Yes, v3.0.0 adds Laravel 10.x support according to the release note. That makes it viable for Laravel 10 applications assuming your PHP and dependency constraints align. Confirm the exact supported PHP version and test matrix before upgrading.
What PHP version is required for laravelresources v3?
The available evaluation points to a likely requirement of PHP 8.1 or higher for Laravel 10 compatibility. The release note does not explicitly enumerate the package's PHP constraint, so verify it with Composer before installing. Check composer.json and CI matrix for the authoritative answer.
How do I generate an API resource for an Eloquent model?
Use the package's documented Artisan command to scaffold a resource class for your model. The package is designed to turn that repetitive resource boilerplate into a single command workflow. Check the README for the exact command signature and options.
Does it generate resource collections as well as single resources?
Yes, the package description says it generates resource classes and collections for Eloquent models. That covers both single-model and collection JSON transformations. Confirm the exact command options in the documentation.
Can I use laravelresources with Laravel 9 or Laravel 8?
v3.0.0 is documented as adding Laravel 10 support, and older Laravel compatibility is not confirmed in the provided release note. Do not assume v3 supports Laravel 8 or 9 without checking the changelog and Composer constraints. If you are on an older Laravel version, evaluate the previous major version or upgrade Laravel first.
What breaking changes are in laravelresources v3.0.0?
The release is a major version bump, but the only listed change is Laravel 10 support. Major versions often include dropped framework or PHP versions and API changes that are not enumerated here. Review the changelog and upgrade guide, and treat it as unknown upgrade risk until verified.
Is laravelresources safe to use in production?
The package is a development-time scaffolder for API resources, so its runtime footprint is likely small, but the evaluation notes that this cannot be confirmed from the release note alone. Test it in staging, check config caching and auto-discovery, and run your regression suite before production. Keep a rollback path to the previous package version and lock file.
What are alternatives to laravelresources for Laravel API resources?
Laravel's native make:resource and make:resource --collection commands already scaffold resource classes. You can also write resource classes manually or use other packages that generate API resources. This package is mainly useful if you want a streamlined command workflow for both resources and collections.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo