protected function getColumnsUsedInMigration(Resource $resource, MigrationInput $input)
    {
        $columns = collect($resource->fields)->pluck('name')->toArray();

        if (!$input->withoutTimestamps) {
            $columns[] = 'created_at';
            $columns[] = 'updated_at';
        }

        if ($input->withSoftDelete) {
            $columns[] = 'deleted_at';
        }

        return $columns;
    }
protected function getColumnsUsedInMigration(Resource $resource, MigrationInput $input)
    {
        $columns = collect($resource->fields)->pluck('name')->toArray();

        if (!$input->withoutTimestamps) {
            $columns[] = 'created_at';
            $columns[] = 'updated_at';
        }

        if ($input->withSoftDelete) {
            $columns[] = 'deleted_at';
        }

        return $columns;
    }
protected function getColumnsUsedInMigration ( Resource $ resource , MigrationInput $ input ) { $ columns = collect ( $ resource -> fields ) -> pluck ( 'name' ) -> toArray ( ) ; if ( ! $ input -> withoutTimestamps ) { $ columns [ ] = 'created_at' ; $ columns [ ] = 'updated_at' ; } if ( $ input -> withSoftDelete ) { $ columns [ ] = 'deleted_at' ; } return $ columns ; }
Gets a list of all column that are used in the given migration

@param CrestApps\CodeGenerator\Models\Resource $resource
@param CrestApps\CodeGenerator\Models\MigrationInput $input

@return string
Gets a list of all column that are used in the given migration