Laralib\L5scaffold\Makes\MakeView::getSchemaArray PHP Method

getSchemaArray() protected method

Get all property of model
protected getSchemaArray ( ) : void
return void
    protected function getSchemaArray()
    {
        // ToDo - schema is required?
        if ($this->scaffoldCommandObj->option('schema') != null) {
            if ($schema = $this->scaffoldCommandObj->option('schema')) {
                return (new SchemaParser())->parse($schema);
            }
        }
        return [];
    }