{"id":36419438,"url":"https://github.com/brainstudnl/laravel-patchable-api-resource","last_synced_at":"2026-01-11T17:04:55.269Z","repository":{"id":62496582,"uuid":"475898766","full_name":"brainstudnl/laravel-patchable-api-resource","owner":"brainstudnl","description":"A route generator that generates distinct put and patch endpoints","archived":false,"fork":false,"pushed_at":"2025-07-14T13:30:51.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-15T15:25:46.019Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/brainstudnl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"zenodo":null}},"created_at":"2022-03-30T13:46:49.000Z","updated_at":"2025-07-14T13:30:27.000Z","dependencies_parsed_at":"2024-06-04T10:56:44.290Z","dependency_job_id":"c9b84db9-d64c-4302-85ad-4a67ce8dcebf","html_url":"https://github.com/brainstudnl/laravel-patchable-api-resource","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/brainstudnl/laravel-patchable-api-resource","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstudnl%2Flaravel-patchable-api-resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstudnl%2Flaravel-patchable-api-resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstudnl%2Flaravel-patchable-api-resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstudnl%2Flaravel-patchable-api-resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brainstudnl","download_url":"https://codeload.github.com/brainstudnl/laravel-patchable-api-resource/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainstudnl%2Flaravel-patchable-api-resource/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28314264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-11T17:04:55.195Z","updated_at":"2026-01-11T17:04:55.261Z","avatar_url":"https://github.com/brainstudnl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Patchable API Resource\n\n`laravel-patchable-api-resource` is a faster way to register patchable API resources in your routes file.\n\nBy registering a route as `patchable-api-resource` it differentiates between `PUT` and `PATCH` and calls the `update()` or `patch()` method on your controller.\n\n## Installation\nRequire the package\n```bash\ncomposer require brainstud/laravel-patchable-api-resource\n```\n\nAdd the following to `bootstrap/app.php`:\n\n```php\n$app-\u003esingleton(\n    'router',\n    \\Brainstud\\PatchableApiResource\\PatchableApiResourceRouter::class\n);\n```\n\n## Usage\nRegistering a patchable API-resource works the same as the default `Route::apiResource` and `Route::apiResources` methods.\n\n```php\n// api.php\n\nRoute::patchableApiResources([\n    'items' =\u003e ItemsController::class,\n]);\n\nRoute::patchableApiResource('items', ItemController::class);\n```\n\n## License\nlaravel-patchable-api-resource is open-sourced software licensed under the [MIT License](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainstudnl%2Flaravel-patchable-api-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainstudnl%2Flaravel-patchable-api-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainstudnl%2Flaravel-patchable-api-resource/lists"}