src/Makes/MakeModel.php
protected function buildFillable(&$stub)
    {
        $schemaArray = [];

        $schema = $this->scaffoldCommandObj->getMeta()['schema'];

        if ($schema)
        {
            $items = (new SchemaParser)->parse($schema);
            foreach($items as $item)
            {
                $schemaArray[] = "'{$item['name']}'";
            }

            $schemaArray = join(", ", $schemaArray);
        }

        $stub = str_replace('{{fillable}}', $schemaArray, $stub);

        return $this;
    }
protected function buildFillable(&$stub)
    {
        $schemaArray = [];

        $schema = $this->scaffoldCommandObj->getMeta()['schema'];

        if ($schema)
        {
            $items = (new SchemaParser)->parse($schema);
            foreach($items as $item)
            {
                $schemaArray[] = "'{$item['name']}'";
            }

            $schemaArray = join(", ", $schemaArray);
        }

        $stub = str_replace('{{fillable}}', $schemaArray, $stub);

        return $this;
    }
protected function buildFillable ( & $ stub ) { $ schemaArray = [ ] ; $ schema = $ this -> scaffoldCommandObj -> getMeta ( ) [ 'schema' ] ; if ( $ schema ) { $ items = ( new SchemaParser ) -> parse ( $ schema ) ; foreach ( $ items as $ item ) { $ schemaArray [ ] = "'{$item['name']}'" ; } $ schemaArray = join ( ", " , $ schemaArray ) ; } $ stub = str_replace ( '{{fillable}}' , $ schemaArray , $ stub ) ; return $ this ; }
Build stub replacing the variable template.

@return string
Build stub replacing the variable template .