{"repo":"reliese/laravel","free":true,"listed":false,"github":"https://github.com/reliese/laravel","clone":"git clone https://github.com/reliese/laravel.git","description":"Reliese Laravel Model Generator","language":"PHP","stars":1707,"topics":["laravel","scaffold","laravel-components","database","eloquent","eloquent-models","mysql-database"],"license":"MIT","category":"databases-storage","readme_excerpt":"Reliese Laravel Model Generator Reliese Laravel Model Generator aims to speed up the development process of Laravel applications by providing some convenient code-generation capabilities. The tool inspects your database structure, including column names and foreign keys, in order to automatically generate Models that have correctly typed properties, along with any relationships to other Models. How does it work? This package expects that you are using Laravel 5.1 or above. You will need to import the reliese/laravel package via composer: Configuration It is recommended that this package should only be used on a local environment for security reasons. You should install it via composer using the --dev option like this: Add the models.php configuration file to your config directory and clear the config cache: Models Usage Assuming you have already configured your database, you are now all set to go. - Let's scaffold some of your models from your default connection. - You can scaffold a specific table like this: - You can also specify the connection: - If you are using a MySQL database, you can specify which schema you want to scaffold: Customizing Model Scaffolding To change the scaffolding behaviour you can make config/models.php configuration file fit your database needs. Check it out ;-) Tips 1. Keeping model changes You may want to generate your models as often as you change your database. In order not to lose your own model changes, you should set base files to true in you","default_branch":null,"files":null,"tree":[],"storefront":"/r/reliese","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/reliese/laravel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}