PHP Class Laralib\L5scaffold\Makes\MakeMigration

Inheritance: use trait MakerTrait
Show file Open project: laralib/l5scaffold

Protected Properties

Property Type Description
$scaffoldCommandObj Laralib\L5scaffold\Commands\ScaffoldMakeCommand Store scaffold command.

Public Methods

Method Description
__construct ( ScaffoldMakeCommand $scaffoldCommand, Illuminate\Filesystem\Filesystem $files ) : void Create a new instance.

Protected Methods

Method Description
compileMigrationStub ( ) : string Compile the migration stub.
getPath ( string $name ) : string Get the path to where we should store the migration.
replaceSchema ( string &$stub ) Replace the schema for the stub.
start ( ) : void Start make migration.

Method Details

__construct() public method

Create a new instance.
public __construct ( ScaffoldMakeCommand $scaffoldCommand, Illuminate\Filesystem\Filesystem $files ) : void
$scaffoldCommand Laralib\L5scaffold\Commands\ScaffoldMakeCommand
$files Illuminate\Filesystem\Filesystem
return void

compileMigrationStub() protected method

Compile the migration stub.
protected compileMigrationStub ( ) : string
return string

getPath() protected method

Get the path to where we should store the migration.
protected getPath ( string $name ) : string
$name string
return string

replaceSchema() protected method

Replace the schema for the stub.
protected replaceSchema ( string &$stub )
$stub string

start() protected method

Start make migration.
protected start ( ) : void
return void

Property Details

$scaffoldCommandObj protected property

Store scaffold command.
protected ScaffoldMakeCommand,Laralib\L5scaffold\Commands $scaffoldCommandObj
return Laralib\L5scaffold\Commands\ScaffoldMakeCommand