Untitled
Anonymous
plain_text
02/04/2022 9:01 AM
780 B
19
Indexable
<?php
namespace App\Http\Livewire\Modals;
use App\Models\Topic;
use LivewireUI\Modal\ModalComponent;
class TopicEdit extends ModalComponent
{
public $title;
public function mount($id,$title)
{
$this->id = $id;
$this->title = $title;
}
public function edit($id)
{
dump($id);
//session()->flash('message', 'Category Deleted Successfully.');
$this->emit('refresh'); // refreshing table
}
public function render()
{
return view('livewire.modals.topic-edit');
}
}
Editor is loading...