akmalriyadi / laravel-backend-generator
This is my package laravel-backend-generator
Fund package maintenance!
AkmalRiyadi
Requires
- php: ^8.2
- illuminate/contracts: ^10.0||^11.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^9.0.0||^8.22.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- spatie/laravel-ray: ^1.35
README
Big update for package with many feature, stay tune for complete documentation
-
Return Controller Directly from Service
Previously, our return was a
resource::class
, which caused errors not to be visible when using the API until we returned from the service. Now, errors will be visible immediately. -
More Complex Data Flexibility
By switching to direct returns from the service, resources can still be used by simply changing the
resourceClass
in the__construct
. If you don’t want to use it, you can set its value tonull
. -
File Upload V3
Similar to V1, File Upload V3 gives you more freedom. You can directly input file objects into your functions, so there are no issues if the file is an array.
-
Where Function
Apologies for missing this function earlier. It is now available as a base for the where function. You can use
QueryOptions
for your query options, whether you want toget()
orfirst()
. -
Optimize Pagination
Pagination data is now more complex, with customizable pagination types available directly from the request. You can also retrieve all data with pagination output.
-
Fixing Repository Errors
Correcting errors in repository class writing.
-
Fixing Single Data Output
Fixing resource output for single data such as
find
andfindOrFail
. -
Fixing Pagination Output
Fixing duplicate pagination output.
-
Pagination Collection
You can now paginate any data, not just model data.
-
Update Environment
A repository function is now available for updating the environment (
.env
).
Support My Work
Thank you for visiting my GitHub repository! Your interest in my work means a lot to me. If you find this project helpful or valuable, please consider supporting its development.
Creating and maintaining this project requires significant time and effort. Your support will enable me to continue improving and adding new features to this project.
How You Can Help
-
Star the Repository: Show your appreciation by giving this repository a star. It helps increase visibility and encourages more contributors to join.
-
Share with Others: If you know someone who might benefit from this project, please share it with them.
-
Make a Donation: If you're in a position to contribute financially, any amount would be greatly appreciated. Your donations will directly support the ongoing development and maintenance of this project.
Donate via PayPal: zainnoeryadie@gmail.com
-
Have a Special Request or Need Assistance?: If you have any specific requests, ideas for improvement, or if you require assistance related to this project, feel free to reach out. You can email me directly at zainnoeryadie@gmail.com.
Thank you for your support!