{"repo":"vildanbina/laravel-model-json","free":true,"listed":false,"github":"https://github.com/vildanbina/laravel-model-json","clone":"git clone https://github.com/vildanbina/laravel-model-json.git","description":"Laravel Model JSON is a package that allows you to easily export data from specific models in your Laravel application to JSON format. It is based on the php artisan command and offers various options to customize the export process. This package is helpful for exporting important data from your models in a convenient format.","language":"PHP","stars":126,"topics":["laravel","model-json-export","model-json-import"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Introduction The Laravel Model JSON package allows you to export data from a specific model in the form of a JSON file. It is based on the php artisan command and is easy to use. Installation To install this package, use the following command: Usage Export The command to export data from a model is php artisan model:export {model} , where {model} is the class name of the model you wish to export. After running this command, the data will be automatically saved in the storage/app folder. For example, to export data from the User model, you would run the following command: If your model is located in a different folder, you can specify the exact location, like so: Options Choose your path to save This package also has several options that allow you to customize the export functionality. For example, you can use the --path=public option to save the JSON data in a different folder. Here's an example: Filename By default, the filename of the JSON data is \"Model-Timestamp\", but you can also specify a custom filename using the --filename=data option. For example: Except Fields from export You can also exclude certain columns from the export by using the --except-fields option. This is useful if you only want to export certain data from the model. For example: Without timestamps To exclude the created at , updated at , and deleted at columns from the export, use the --without-timestamps option. For example: Without global scopes You can remove registered global scopes from the export","default_branch":null,"files":null,"tree":[],"storefront":"/r/vildanbina","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vildanbina/laravel-model-json/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}