Download the PHP package naimsolong/laravel-data-extractor without Composer
On this page you can find all versions of the php package naimsolong/laravel-data-extractor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download naimsolong/laravel-data-extractor
More information about naimsolong/laravel-data-extractor
Files in naimsolong/laravel-data-extractor
Package laravel-data-extractor
Short Description A data extractor based on models and it's relationship
License MIT
Homepage https://github.com/naimsolong/laravel-data-extractor
Informations about the package laravel-data-extractor
A data extractor based on models and it's relationship
A Laravel package for extracting data from Eloquent models and their relationships with flexible configuration options. This package provides a simple and intuitive way to extract structured data from your models, making it perfect for API responses, data exports, or any scenario where you need to transform model data into a specific format.
What It Does
The extractor leverages Laravel's relationship system to automatically include related data based on your configuration, while providing fine-grained control over which fields are included or excluded from the extraction process.
You can use the available options inside config file:
Or you can use model that you have queried:
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Amirul Naim
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-data-extractor with dependencies
illuminate/contracts Version ^10.0||^11.0||^12.0
spatie/laravel-package-tools Version ^1.16