{"id":18870788,"url":"https://github.com/cmandersen/has-one-specific","last_synced_at":"2025-10-28T03:03:21.360Z","repository":{"id":56954327,"uuid":"377470564","full_name":"cmandersen/has-one-specific","owner":"cmandersen","description":"Add a Laravel relationship where you can specify a set ID, instead of a dynamic relationship","archived":false,"fork":false,"pushed_at":"2024-05-24T10:02:57.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T19:38:01.552Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmandersen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-16T11:20:56.000Z","updated_at":"2024-05-24T10:03:00.000Z","dependencies_parsed_at":"2022-08-21T04:10:14.853Z","dependency_job_id":null,"html_url":"https://github.com/cmandersen/has-one-specific","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmandersen%2Fhas-one-specific","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmandersen%2Fhas-one-specific/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmandersen%2Fhas-one-specific/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmandersen%2Fhas-one-specific/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmandersen","download_url":"https://codeload.github.com/cmandersen/has-one-specific/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244844531,"owners_count":20519790,"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-08T05:22:55.747Z","updated_at":"2025-10-28T03:03:16.340Z","avatar_url":"https://github.com/cmandersen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HasOneSpecific\nAdd a Laravel relationship where you can specify a set ID, instead of a dynamic relationship\n\n## Installation\n```\ncomposer require cmandersen/has-one-specific\n```\n\n## Usage\nThis package is basically just a trait that uses a relationship class, so it's just a case of using the trait where you need it.\n```php\nclass User extends Model {\n    use \\CMAndersen\\HasOneSpecific\\HasOneSpecific;\n    \n    public function company(){\n        return $this-\u003ehasOneSpecific(Company::class, 97);\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmandersen%2Fhas-one-specific","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmandersen%2Fhas-one-specific","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmandersen%2Fhas-one-specific/lists"}