{"id":36984474,"url":"https://github.com/kksoftwareag/laravel-model-generator","last_synced_at":"2026-01-13T23:00:48.347Z","repository":{"id":34872716,"uuid":"186037953","full_name":"kksoftwareag/laravel-model-generator","owner":"kksoftwareag","description":"Laravel Components for code generation","archived":false,"fork":true,"pushed_at":"2023-08-09T04:22:59.000Z","size":173,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T23:53:00.782Z","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":"reliese/laravel","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kksoftwareag.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-05-10T18:39:16.000Z","updated_at":"2022-02-23T12:06:37.000Z","dependencies_parsed_at":"2023-02-19T06:16:08.020Z","dependency_job_id":null,"html_url":"https://github.com/kksoftwareag/laravel-model-generator","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/kksoftwareag/laravel-model-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kksoftwareag%2Flaravel-model-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kksoftwareag%2Flaravel-model-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kksoftwareag%2Flaravel-model-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kksoftwareag%2Flaravel-model-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kksoftwareag","download_url":"https://codeload.github.com/kksoftwareag/laravel-model-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kksoftwareag%2Flaravel-model-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-13T23:00:26.226Z","updated_at":"2026-01-13T23:00:48.319Z","avatar_url":"https://github.com/kksoftwareag.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reliese Laravel\n\n[![Build Status](https://travis-ci.com/kksoftwareag/laravel-model-generator.svg?branch=master)](https://travis-ci.com/kksoftwareag/laravel-model-generator)\n[![Latest Stable Version](https://poser.pugx.org/kksoftwareag/laravel-model-generator/v/stable)](https://packagist.org/packages/kksoftwareag/laravel-model-generator)\n[![Total Downloads](https://poser.pugx.org/kksoftwareag/laravel-model-generator/downloads)](https://packagist.org/packages/kksoftwareag/laravel-model-generator)\n[![Latest Unstable Version](https://poser.pugx.org/kksoftwareag/laravel-model-generator/v/unstable)](https://packagist.org/packages/kksoftwareag/laravel-model-generator)\n[![License](https://poser.pugx.org/kksoftwareag/laravel-model-generator/license)](https://packagist.org/packages/kksoftwareag/laravel-model-generator)\n\nReliese Laravel is a collection of Laravel Components which aim is \nto help the development process of Laravel applications by \nproviding some convenient code-generation capabilities.\n\n## How does it work?\n\nThis package expects that you are using Laravel 5.1 or above.\nYou will need to import the `reliese/laravel` package via composer:\n\n```shell\ncomposer require reliese/laravel\n```\n\n### Configuration\n\nAdd the service provider to your `config/app.php` file within the `providers` key:\n\n```php\n// ...\n'providers' =\u003e [\n    /*\n     * Package Service Providers...\n     */\n\n    Reliese\\Coders\\CodersServiceProvider::class,\n],\n// ...\n```\n### Configuration for local environment only\n\nIf you wish to enable generators only for your local environment, you should install it via composer using the --dev option like this:\n\n```shell\ncomposer require reliese/laravel --dev\n```\n\nThen you'll need to register the provider in `app/Providers/AppServiceProvider.php` file.\n\n```php\npublic function register()\n{\n    if ($this-\u003eapp-\u003eenvironment() == 'local') {\n        $this-\u003eapp-\u003eregister(\\Reliese\\Coders\\CodersServiceProvider::class);\n    }\n}\n```\n\n## Models\n\n![Generating models with artisan](https://cdn-images-1.medium.com/max/800/1*hOa2QxORE2zyO_-ZqJ40sA.png \"Making artisan code my Eloquent models\")\n\nAdd the `models.php` configuration file to your `config` directory and clear the config cache:\n\n```shell\nphp artisan vendor:publish --tag=reliese-models\nphp artisan config:clear\n```\n\n### Usage\n\nAssuming you have already configured your database, you are now all set to go.\n\n- Let's scaffold some of your models from your default connection.\n\n```shell\nphp artisan code:models\n```\n\n- You can scaffold a specific table like this:\n\n```shell\nphp artisan code:models --table=users\n```\n\n- You can also specify the connection:\n\n```shell\nphp artisan code:models --connection=mysql\n```\n\n- If you are using a MySQL database, you can specify which schema you want to scaffold:\n\n```shell\nphp artisan code:models --schema=shop\n```\n\n### Customizing Model Scaffolding\n\nTo change the scaffolding behaviour you can make `config/models.php` configuration file\nfit your database needs. [Check it out](https://github.com/reliese/laravel/blob/master/config/models.php) ;-)\n\n### Tips\n\n#### 1. Keeping model changes\n\nYou may want to generate your models as often as you change your database. In order\nnot to lose you own model changes, you should set `base_files` to `true` in your `config/models.php`.\n\nWhen you enable this feature your models will inherit their base configurations from\nbase models. You should avoid adding code to your base models, since you\nwill lose all changes when they are generated again.\n\n\u003e Note: You will end up with two models for the same table and you may think it is a horrible idea \nto have two classes for the same thing. However, it is up to you\nto decide whether this approach gives value to your project :-)\n\n#### Support\n\nFor the time being, this package only supports MySQL databases. Support for other databases will be added soon.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkksoftwareag%2Flaravel-model-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkksoftwareag%2Flaravel-model-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkksoftwareag%2Flaravel-model-generator/lists"}