{"id":26508383,"url":"https://github.com/bedoke/model-repositories","last_synced_at":"2026-05-05T08:33:52.312Z","repository":{"id":56950619,"uuid":"196526054","full_name":"bedoke/model-repositories","owner":"bedoke","description":"Laravel package for connecting Models with file repositories. It ensures that your models get their own storage directories and functions.","archived":false,"fork":false,"pushed_at":"2019-08-06T09:26:55.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-18T23:43:34.265Z","etag":null,"topics":["laravel","laravel-5-package","repository","storage"],"latest_commit_sha":null,"homepage":"","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/bedoke.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":"2019-07-12T06:58:43.000Z","updated_at":"2019-08-06T09:26:58.000Z","dependencies_parsed_at":"2022-08-21T08:20:56.638Z","dependency_job_id":null,"html_url":"https://github.com/bedoke/model-repositories","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bedoke/model-repositories","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedoke%2Fmodel-repositories","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedoke%2Fmodel-repositories/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedoke%2Fmodel-repositories/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedoke%2Fmodel-repositories/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bedoke","download_url":"https://codeload.github.com/bedoke/model-repositories/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedoke%2Fmodel-repositories/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271631909,"owners_count":24793571,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["laravel","laravel-5-package","repository","storage"],"created_at":"2025-03-21T00:23:31.886Z","updated_at":"2026-05-05T08:33:47.259Z","avatar_url":"https://github.com/bedoke.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nThis package ensures that your models get their own storage directories.\n\n# Install\n\n## Get the package\n\n    composer require bedoke/model-repositories\n\n## Extend the subjected model classes\n\n    use bedoke\\ModelRepositories\\Traits\\PublicRepository; // for public repositories\n    use bedoke\\ModelRepositories\\Traits\\PrivateRepository; // for private repositories\n\nAll models can have both repository types!\n\nInside the model classes you have to use the traits.\n\n    use PublicRepository, PrivateRepository;\n\n## Migration\n\n    php artisan migrate\n\n\n# Usage\n\n## Functions\n\nThe private and public repository has almost all the storage functions that the Laravel Framework provides.\n\nExample for the Laravel standard:\n\n    Storage::put($file, $content);\n\nExample for this Model repositories package:\n\n    Auth::user()-\u003eprivateRepository-\u003eput($file, $content);\n\n\nSome functions must have different names due to the inheritance hierarchies.\nThe following storage function calls have the following names via this repository package:\n\n    Storage::append()   --\u003e     $repository-\u003eappendContent()\n    Storage::prepend()  --\u003e     $repository-\u003eprependContent()\n    Storage::delete()   --\u003e     $repository-\u003eremove()\n\nSome functions (for example move() or rename()) are not implemented yet.\nFeel free to implement them and make a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbedoke%2Fmodel-repositories","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbedoke%2Fmodel-repositories","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbedoke%2Fmodel-repositories/lists"}