Is there any way to return Livewire component direct from the controller method

Viewed 24

I was trying to return a livewire component from the controller. Something like the code below

public function index(){
  return livewire(LivewireComponent:class, [
    'someParam' => $param;
  ]);
}

Is there any way to do so?

1 Answers
Related