- 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)
34 lines
980 B
PHP
34 lines
980 B
PHP
<?php
|
|
|
|
namespace App\Notifications;
|
|
|
|
use App\Models\Inspection;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Notifications\Notification;
|
|
|
|
class InspectionUpdatedNotification extends Notification
|
|
{
|
|
use Queueable;
|
|
|
|
public function __construct(public Inspection $inspection, public array $changes = []) {}
|
|
|
|
public function via($notifiable): array
|
|
{
|
|
return ['database'];
|
|
}
|
|
|
|
public function toArray($notifiable): array
|
|
{
|
|
return [
|
|
'type' => 'inspection_updated',
|
|
'inspection_id' => $this->inspection->id,
|
|
'project_id' => $this->inspection->project_id,
|
|
'feature_name' => $this->inspection->feature?->name ?? '—',
|
|
'template_name' => $this->inspection->template?->name ?? '—',
|
|
'result' => $this->inspection->result,
|
|
'changes' => $this->changes,
|
|
'message' => "Inspección actualizada en '{$this->inspection->feature?->name}'",
|
|
];
|
|
}
|
|
}
|