Renamed and reorganized Livewire components, namespaces, and views for improved file structure and clarity. Introduced filaments.show and filaments.edit routes. Updated database migrations and navigation routes accordingly. Upgraded dependencies in composer.

This commit is contained in:
2025-12-13 03:10:31 +01:00
parent 85b97ed3b1
commit 7e79d1d034
35 changed files with 1319 additions and 736 deletions
+37
View File
@@ -0,0 +1,37 @@
<?php
namespace App\Livewire\Filament;
use Livewire\Component;
use App\Models\Filament as Model;
use App\Models\Manufacturer;
use Livewire\WithPagination;
use Livewire\Attributes\title;
#[title('Show Filament')]
class EditFilament extends Component
{
public Model $filament ;
public function back(){
return redirect()->route('filaments.index');
}
public function show($id){
return redirect()->route('filaments.show', $id);
}
public function mount(Model $filament){
$this->filament = $filament;
}
public function render()
{
return view('livewire.filament.edit', [
'manufacturers' => Manufacturer::all(),
'colors' => \App\Models\Color::all(),
'types' => \App\Models\FilamentType::all()
]);
}
}