{"id":18470314,"url":"https://github.com/illegalstudio/laravel-utils","last_synced_at":"2025-05-12T03:09:44.190Z","repository":{"id":148523938,"uuid":"620224073","full_name":"illegalstudio/laravel-utils","owner":"illegalstudio","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-14T17:13:43.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-11T00:56:39.128Z","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/illegalstudio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-03-28T09:10:59.000Z","updated_at":"2023-03-28T21:45:21.000Z","dependencies_parsed_at":"2023-07-29T13:47:01.083Z","dependency_job_id":null,"html_url":"https://github.com/illegalstudio/laravel-utils","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illegalstudio%2Flaravel-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illegalstudio%2Flaravel-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illegalstudio%2Flaravel-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illegalstudio%2Flaravel-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/illegalstudio","download_url":"https://codeload.github.com/illegalstudio/laravel-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253501845,"owners_count":21918326,"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-06T10:13:35.403Z","updated_at":"2025-05-11T00:56:42.181Z","avatar_url":"https://github.com/illegalstudio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Utils\n\nThis repository contains a collection of useful classes and traits for Laravel.\n\nIt is used mainly for [illegal studio](https://github.com/illegalstudio) projects.\n\n## HasPrefix\n\nThis traits can be used to add a prefix to your model's table name.\n\n```php\nclass MyModel extends Model\n{\n    use HasPrefix;\n    \n    protected $prefix = 'my_prefix_';\n}\n```\n\nAlternatively you can use the `getPrefix` method to set the prefix.\n\nThis is useful if you want to set the prefix dynamically.\n\n```php\nclass MyModel extends Model\n{\n    use HasPrefix;\n    \n    public function getPrefix()\n    {\n        return config('my.prefix');\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillegalstudio%2Flaravel-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fillegalstudio%2Flaravel-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillegalstudio%2Flaravel-utils/lists"}