Add Spareparts module with CRUD functionality and UI components.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire\Sparepart;
|
||||
|
||||
use Livewire\Component;
|
||||
use App\Models\Sparepart as Model;
|
||||
use Livewire\Attributes\title;
|
||||
|
||||
#[title('Show Filament')]
|
||||
class ShowSparepart extends Component
|
||||
{
|
||||
|
||||
public Model $sparepart ;
|
||||
|
||||
public function back(){
|
||||
return redirect()->route('spareparts.index');
|
||||
}
|
||||
|
||||
public function edit($id){
|
||||
return redirect()->route('spareparts.edit', $id);
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.sparepart.show', [
|
||||
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user