Files
construprogress/app/Exports/ProjectsExport.php
T
Javier Braña 90630379fb chore: cleanup dead code + format with Pint
- Remove unused FeaturesController (empty stubs, no routes)
- Remove ConvertSpatialFile CLI command (unused; service used in LayerManager)
- Remove MigrateGeojsonToFeatures CLI command (one-shot migration, not referenced)
- Remove .claude/worktrees/ (11 old agent worktrees from June)
- Apply Laravel Pint formatting across 219 files (style only, no functional changes)

Tests: 101 passing (319 assertions)
API routes: unchanged (8 routes intact)
2026-08-28 13:04:28 +02:00

39 lines
782 B
PHP

<?php
namespace App\Exports;
use App\Models\Project;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithHeadings;
class ProjectsExport implements FromCollection, WithHeadings
{
public function collection()
{
return Project::select([
'id',
'name',
'description',
'start_date',
'end_date',
'status',
'created_at',
'updated_at',
])->get();
}
public function headings(): array
{
return [
'ID',
'Nombre',
'Descripción',
'Fecha de inicio',
'Fecha de fin',
'Estado',
'Creado el',
'Actualizado el',
];
}
}