Download the PHP package denis-kisel/constructor without Composer
On this page you can find all versions of the php package denis-kisel/constructor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download denis-kisel/constructor
More information about denis-kisel/constructor
Files in denis-kisel/constructor
Package constructor
Short Description :Ready solution for generate models with laravel-admin controllers
License MIT
Homepage https://github.com/denis-kisel/constructor-laravel
Informations about the package constructor
Constructor
This is package for generate migrations with models and/or Laravel Admin controllers by patterns
Dependence
- For use Laravel Admin controllers need to install this package
- For use Laravel Translatable need to install this package
Installation
Via Composer
Usage
Create Model With Empty Migration
Command: construct:model ModelName
Example
Output
- Model:
App\Models\Post
- Migration:
Create Model With Fields
Command: construct:model ModelName [options]
Option: {--fields=}
Field signature: name:type:length{extraMethod:paramValue}
Multi fields and extra methods must separate by comma ,
Example
Output
- Model:
App\Models\Post
- Migration:
Create Model With Bind To Locale(Translation)
See Translatable Doc
Command: construct:modelt ModelName [options]
Option: {--fields=}
Field signature: name:type:length{extraMethod:paramValue}[t]
Param [t]
is optional and denotes translation
field
Multi fields and extra methods must separate by comma ,
Example
Output
- Models:
App\Models\Post
,App\Models\PostTranslation
- Migrations:
Create Model With Basic Page Fields
Command: construct:page ModelName [options]
Example
Output
- Model:
App\Models\Post
- Migration:
Create Laravel-Admin Controller
See Laravel-Admin Doc
Command: construct:admin ModelName {--fields=}
Field signature: name:type:length{extraMethod:paramValue}
Multi fields and extra methods must separate by comma ,
Example
Output
- Admin Controller:
App\Admin\Controllers\PostController
- Contains:
Options
Option | Description |
---|---|
{--fields=} |
Create model with fields |
{--pattern_path=} |
Path to file with custom fields by pattern |
{--i} |
Ignore exists model or controller |
{--m} |
Run migration |
{--a} |
Create model with laravel-admin controller |
Create Model With Fields
Option: {--fields=}
Field signature: name:type:length{extraMethod:paramValue}[t]
Param [t]
is optional and denotes translation
field
Multi fields and extra methods must separate by comma ,
Example
Run Migration
Option: {--m}
(migration)
Example
Overwrite Exists Model Or/And Controller
Option: {--i}
(ignore)
Example
Create Model With Laravel-Admin Controller
Option: {--a}
(admin)
Example
Commands
Command | Description |
---|---|
construct:model [options] |
Create Model |
construct:modelt [options] |
Create Translatable Model (Bind With Locale) |
construct:page [options] |
Create Model With Basics Page Fields: id , code , slug , name , description , title , h1 , keywords , meta_description , sort , is_active , timestamps |
construct:paget [options] |
Create Model With Basics Page Fields(Bind With Locale). Page Fields: id , sort , is_active , timestamps . PageTranslation Fields: code , slug , name , description , title , h1 , keywords , meta_description |
construct:admin [options] |
Create Laravel Admin Controller |
construct:admint [options] |
Create Translatable Laravel Admin Controller(Bind With Locale) |
construct:admin_page [options] |
Create Laravel Admin Controller With Basics Page Fields. Basic Fields: See construct:page |
install:locale [options] |
Create Locale Model With Laravel Admin Controller. Example: $ php artisan install:locale --a --m |
License
This package is open-sourced software licensed under the MIT license
Contact
Developer: Denis Kisel
- Email: [email protected]
- Skype: live:denis.kisel92
All versions of constructor with dependencies
denis-kisel/active-helper Version *
denis-kisel/smart-image Version *
denis-kisel/helper Version *
rap2hpoutre/similar-text-finder Version *