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