{"id":22917421,"url":"https://github.com/mtownsend5512/laravel-make-trait","last_synced_at":"2025-07-23T17:32:59.887Z","repository":{"id":57021619,"uuid":"159535752","full_name":"mtownsend5512/laravel-make-trait","owner":"mtownsend5512","description":"Rapid trait generation in Laravel","archived":false,"fork":false,"pushed_at":"2024-09-06T17:18:20.000Z","size":12,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-09T16:52:07.887Z","etag":null,"topics":["artisan","artisan-command","boot","laravel","make","scope","trait"],"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/mtownsend5512.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-11-28T16:56:56.000Z","updated_at":"2024-09-06T17:18:24.000Z","dependencies_parsed_at":"2025-05-12T17:05:48.265Z","dependency_job_id":"9b631516-9f28-459d-a634-f65df4994368","html_url":"https://github.com/mtownsend5512/laravel-make-trait","commit_stats":{"total_commits":11,"total_committers":3,"mean_commits":"3.6666666666666665","dds":0.2727272727272727,"last_synced_commit":"3dddd7384a2addd4b912df05ef49391509fef872"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/mtownsend5512/laravel-make-trait","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtownsend5512%2Flaravel-make-trait","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtownsend5512%2Flaravel-make-trait/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtownsend5512%2Flaravel-make-trait/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtownsend5512%2Flaravel-make-trait/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtownsend5512","download_url":"https://codeload.github.com/mtownsend5512/laravel-make-trait/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtownsend5512%2Flaravel-make-trait/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266719959,"owners_count":23973874,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["artisan","artisan-command","boot","laravel","make","scope","trait"],"created_at":"2024-12-14T06:17:52.811Z","updated_at":"2025-07-23T17:32:59.864Z","avatar_url":"https://github.com/mtownsend5512.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# This Repository is no longer maintained. Laravel 9 introduced a `make:trait` command, thus package this is no longer necessary.\n\nRapid trait generation in Laravel.\n\n## Installation\n\nInstall via composer:\n\n```\ncomposer require mtownsend/laravel-make-trait\n```\n\n### Registering the service provider\n\nFor Laravel 5.4 and lower, add the following line to your ``config/app.php``:\n\n```php\n/*\n * Package Service Providers...\n */\nMtownsend\\MakeTrait\\Providers\\MakeTraitServiceProvider::class,\n```\n\nFor Laravel 5.5 and greater, the package will auto register the provider for you.\n\n### Using Lumen\n\nTo register the service provider, add the following line to ``app/bootstrap/app.php``:\n\n```php\n$app-\u003eregister(Mtownsend\\MakeTrait\\Providers\\MakeTraitServiceProvider::class);\n```\n\n## Quick start\n\n### Generating a trait\n\n```\nphp artisan make:trait YourTraitName\n```\n\nYour trait will be created in the ``App/Traits`` directory.\n\n### Subdirectories\n\nIf you wish to further organize your traits by subdirectories, you can do so in the same way you would any other ``artisan make`` command.\n\n```\nphp artisan make:trait Orders\\\\StatusCompleted --scope\n```\n\nYour StatusCompleted trait will be created in the ``App/Traits/Orders`` directory and namespaced appropriately.\n\n## Arguments\n\n**-b** or **--boot**\n\n```\nphp artisan make:trait YourTraitName --boot\n```\n\nCreates a trait with a boot method.\n\n**-s** or **--scope**\n\n```\nphp artisan make:trait YourTraitName --scope\n```\n\nCreates a trait with a scope method.\n\n## Purpose\n\nLaravel provides wonderful time saving generation commands for almost all of the components developers need to build a successful web application. This package introduces the convenience of Laravel's ``artisan make`` for trait generation.\n\n## Credits\n\n- Mark Townsend\n- [All Contributors](../../contributors)\n\n## Testing\n\nDue to the simple nature of this package, testing has been purposefully omitted.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtownsend5512%2Flaravel-make-trait","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtownsend5512%2Flaravel-make-trait","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtownsend5512%2Flaravel-make-trait/lists"}