Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
584 B
2
Indexable
Never
<?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');
    }
}