php sc make:model {model} {--table=1} {-c} {-u} {--case=p} {-r}
php sc mdl {model} {--table=1} {-c} {-u} {--case=p} {-r}
model
Model name
--table
[optional]
related table
--case
p
= PascalCase [default]
, c
= camelCase, s
=snake_case
-c
clean
-u
update
-r
overwrite
php sc make:controller {ctrl} {-a} {-b} {-c} {-r}
php sc ctrl {ctrl} {-a} {-b} {-c} {-r}
ctrl
Controller name
-a
RestController (Api Controller)
-b
BaseController
-c
clean
-r
overwrite
php sc make:package {package} {-r} {-f}
php sc pkg {package} {-r} {-f}
package
Package name
-r
overwrite
'-f' create all package folders
php sc use {key} {value} {-c}
php sc make:lang {dict} {--table=1} {--lang=0} {-c} {-u} {-r}
php sc lng {dict} {--table=1} {--lang=0} {-c} {-u} {-r}
php sc mk {name} {--table=1} {--case=p} {-r}
php sc cache:clear {-f} {--key}
php sc ccc
php sc ccf
php sc cc
Creates sql migration files in src/database/{con} and src/database/{con}/rollback
php sc mksql {table} {--con}
In the generated sql files write your sql queries that creates your tables, fields, indices...etc In rollback folder write queries that reverse operations.
php sc migrate:sql {-r} {--con}
OR:
php sc db
php sc migrate:sql -r
OR:
php sc db -r