Download the PHP package teacoders/module-generator without Composer
On this page you can find all versions of the php package teacoders/module-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download teacoders/module-generator
More information about teacoders/module-generator
Files in teacoders/module-generator
Package module-generator
Short Description This package will generate your module quite quickly and will save your time
License MIT
Informations about the package module-generator
Module Generator
About Teacoders
We craft web applications & open source packages in the Laravel ecosystem.
Installation
You can install latest version (only supports in laravel 8):
if you want to install it in laravel 6 or 7
Run the command below to publish the package config file
Run the command below to generate all the required files for the module(model, controller, migration, request, view, route)
-
After that it will ask "Do you want to add columns in migration ? (yes/no) [no]":
-
If you enter yes/y then it will ask comma(,) seperated column names (ex: name,avatar)
-
If you hit enter then it will ask data types for these columns, press enter after selecting data types
- After that it will ask that "Do you want to create request class?" if you enter yes/y then it will create request class and validations for your migration columns, if you enter no/n then it will add validations in controller.
Run the command below to generate view
Run the given command to generate specific view file inside the view directory
Run the given command to delete whole module(model, controller, migration, request, view, route)
Run the below command to delete specific file from module
Run the below command to delete view
Run the below command to delete specific view file inside the view directory
Run the command below to generate trait
Run the command below to delete trait
If you want to generate more view files then change in config/module-generator.php
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.