{"id":20504427,"url":"https://github.com/topclaudy/eloquent-auto-append","last_synced_at":"2025-04-13T20:50:21.764Z","repository":{"id":33779835,"uuid":"161831917","full_name":"topclaudy/eloquent-auto-append","owner":"topclaudy","description":"Automatically append accessors to model serialization","archived":false,"fork":false,"pushed_at":"2024-08-03T17:23:57.000Z","size":141,"stargazers_count":14,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T11:12:03.127Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/topclaudy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-14T19:34:15.000Z","updated_at":"2024-11-30T01:26:18.000Z","dependencies_parsed_at":"2024-08-03T18:52:32.412Z","dependency_job_id":null,"html_url":"https://github.com/topclaudy/eloquent-auto-append","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.4375,"last_synced_commit":"274bc8070e98521371144e35b3dc72186972ee04"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topclaudy%2Feloquent-auto-append","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topclaudy%2Feloquent-auto-append/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topclaudy%2Feloquent-auto-append/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topclaudy%2Feloquent-auto-append/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/topclaudy","download_url":"https://codeload.github.com/topclaudy/eloquent-auto-append/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248782279,"owners_count":21160716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T19:37:55.570Z","updated_at":"2025-04-13T20:50:21.738Z","avatar_url":"https://github.com/topclaudy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Eloquent Auto Append\n====================\n\n**Eloquent Auto Append** automatically appends your [accessors](https://laravel.com/docs/5.7/eloquent-mutators#accessors-and-mutators) to model serialization without having you to explicitly specify them in the `$appends` array.\n\n#### Related discussions:\n\n* [How to always append attributes to Laravel Eloquent model?](https://stackoverflow.com/questions/35701538/how-to-always-append-attributes-to-laravel-eloquent-model)\n* [Why is my Laravel Eloquent accessor not showing up in the response?](https://stackoverflow.com/questions/47872233/why-is-my-laravel-eloquent-accessor-not-showing-up-in-the-response)\n\n## Installation\n\nThe recommended way to install **Eloquent Auto Append** is through [Composer](http://getcomposer.org/)\n\n```bash\n$ composer require awobaz/eloquent-auto-append\n```\n\n\u003e **Note:** **Eloquent Auto Append** requires Laravel 5.4+.\n\n## Usage\n\n### Using the `Awobaz\\AutoAppend\\Database\\Eloquent\\Model` class\n\nSimply make your model class derive from the `Awobaz\\AutoAppend\\Database\\Eloquent\\Model` base class. The `Awobaz\\AutoAppend\\Database\\Eloquent\\Model` extends the `Eloquent` base class without changing its core functionality.\n\n### Using the `Awobaz\\AutoAppend\\AutoAppend` trait\n\nIf for some reasons you can't derive your models from `Awobaz\\AutoAppend\\Database\\Eloquent\\Model`, you may take advantage of the `Awobaz\\AutoAppend\\AutoAppend` trait. Simply use the trait in your models.\n\n### Disable Auto Append\n\nYou may disable **Auto Append** on a model by setting it's property `$autoAppend` to `false` \n\n```php\nprotected $autoAppend = false;\n```\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://github.com/topclaudy/eloquent-auto-append/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/topclaudy/eloquent-auto-append/tags).\n\n## Unit Tests\n\nIn order to run the test suite, install the development dependencies:\n\n```bash\n$ composer install --dev\n```\n\nThen, run the following command:\n\n```bash\n$ vendor/bin/phpunit\n```\n\n## Authors\n\n* [Claudin J. Daniel](https://github.com/topclaudy) - *Initial work*\n\n## Sponsored by\n\n* [Awobaz](https://awobaz.com) - Web/Mobile agency based in Montreal, Canada\n\n## License\n\n**Eloquent Auto Append** is licensed under the [MIT License](http://opensource.org/licenses/MIT).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopclaudy%2Feloquent-auto-append","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopclaudy%2Feloquent-auto-append","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopclaudy%2Feloquent-auto-append/lists"}