{"id":22354476,"url":"https://github.com/mcmatters/laravel-factory-generators","last_synced_at":"2025-07-30T09:31:15.981Z","repository":{"id":62526127,"uuid":"90421044","full_name":"MCMatters/laravel-factory-generators","owner":"MCMatters","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-13T20:56:59.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-26T09:04:46.819Z","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/MCMatters.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":"2017-05-05T22:20:44.000Z","updated_at":"2020-06-13T20:56:46.000Z","dependencies_parsed_at":"2022-11-02T14:30:37.524Z","dependency_job_id":null,"html_url":"https://github.com/MCMatters/laravel-factory-generators","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCMatters%2Flaravel-factory-generators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCMatters%2Flaravel-factory-generators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCMatters%2Flaravel-factory-generators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MCMatters%2Flaravel-factory-generators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MCMatters","download_url":"https://codeload.github.com/MCMatters/laravel-factory-generators/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228114865,"owners_count":17871742,"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-12-04T13:13:00.281Z","updated_at":"2024-12-04T13:13:01.288Z","avatar_url":"https://github.com/MCMatters.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Laravel Factory Generators\n\nGenerate factories for all non-created factories of models.\n\n### Installation\n\n```bash\ncomposer require mcmatters/laravel-factory-generators\n```\n\nInclude the service provider within your `config/app.php` file.\n\n```php\n'providers' =\u003e [\n    McMatters\\FactoryGenerators\\ServiceProvider::class,\n]\n```\n\nPublish the configuration.\n\n```bash\nphp artisan vendor:publish --provider=\"McMatters\\FactoryGenerators\\ServiceProvider\"\n```\n\nThen open the `config/factory-generators.php` and configure paths where your models are locating.\n\n### Advanced configuration\n\n| Name                  | Description |\n|-----------------------|-------------|\n| folders               | `models` - path where models are locating\u003cbr\u003e`factories` - path where factories are locating. |\n| follow_subdirectories | Enable this option if your models are in subdirectories and you wish to keep the structure of the folders. For example, if your model has next namespace: `App\\Models\\User\\Profile` it will generate in your factories folder subdirectory with name `User` including `ProfileFactory.php` file.\u003cbr\u003e**NOTE:** If you enable this option, please specify the root namespace. |\n| model_namespace       | Requires only, if you enabled option above. |\n| types                 | An array of custom types for DBAL. For example: `'json' =\u003e 'string'`. |\n| prefix                | Prefix for factory files. |\n| suffix                | Suffix for factory files. |\n| skip_columns          | An array of the global column names for skipping, for example, you may wish to skip `created_at` and `updated_at` columns in all models. |\n| skip_models           | An array of the fully qualified model names for skipping. |\n| skip_model_columns    | An associative array with skipping columns for specific model. Example: `'App\\Models\\User' =\u003e ['password', 'remember_token']`. |\n| align_array_keys      | If this option will be enabled, all your factories will include aligned array keys. |\n\n## Usage\n\nJust run the command `php artisan factory:generate`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcmatters%2Flaravel-factory-generators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcmatters%2Flaravel-factory-generators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcmatters%2Flaravel-factory-generators/lists"}