Welcome Guest, Not a member yet? Register   Sign In
Add new option for make:model for specific table
#10

The option --table was implemented.

Code:
$ php spark make:model --help

CodeIgniter v4.4.3 Command Line Tool - Server Time: 2023-11-01 02:59:10 UTC+00:00

Usage:
  make:model <name> [options]

Description:
  Generates a new model file.

Arguments:
  name  The model class name.

Options:
  --table      Supply a table name. Default: "the lowercased plural of the class name".
  --dbgroup    Database group to use. Default: "default".
  --return    Return type, Options: [array, object, entity]. Default: "array".
  --namespace  Set root namespace. Default: "APP_NAMESPACE".
  --suffix    Append the component title to the class name (e.g. User => UserModel).
  --force      Force overwrite existing file.
Reply


Messages In This Thread
RE: Add new option for make:model for specific table - by kenjis - 10-31-2023, 08:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB