Untitled
unknown
plain_text
4 years ago
584 B
8
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...