Devise\Pages\Models\ModelManager::createModel PHP Method

createModel() protected method

Creates a new model for the first field type it finds
protected createModel ( [type] $fields ) : [type]
$fields [type]
return [type]
    protected function createModel($fields)
    {
        return $this->Container->make($fields[0]['model_type']);
    }