Download the PHP package oguzhankrcb/auto-casting-json-resource without Composer
On this page you can find all versions of the php package oguzhankrcb/auto-casting-json-resource. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oguzhankrcb/auto-casting-json-resource
More information about oguzhankrcb/auto-casting-json-resource
Files in oguzhankrcb/auto-casting-json-resource
Package auto-casting-json-resource
Short Description This Laravel package automatically casts your JsonResource data using the casting functions you have defined before.
License MIT
Homepage https://github.com/oguzhankrcb/auto-casting-json-resource
Informations about the package auto-casting-json-resource
This Laravel package automatically casts your JsonResource data using the casting functions you have defined before.
This package makes easier to add global castings to your JsonResource
files
Installation
You can install the package via composer:
Usage
Just add this trait to your JsonResource
And then you can cast whatever you want in casts
array
You can exclude columns if you want (id
column is excluded by default)
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Oğuzhan KARACABAY
- Emre Deligöz
- Turan Karatuğ
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of auto-casting-json-resource with dependencies
spatie/laravel-package-tools Version ^1.9.2
laravel/framework Version ^8.0 || ^9.0