Laracademy\Generators\Commands\ModelFromTableCommand::getSchema PHP Method

getSchema() public method

public getSchema ( $tableName )
    public function getSchema($tableName)
    {
        $this->doComment('Retrieving table definition for: ' . $tableName);
        if (strlen($this->options['connection']) <= 0) {
            return Schema::getColumnListing($tableName);
        } else {
            return Schema::connection($this->options['connection'])->getColumnListing($tableName);
        }
    }