Muetze's avatar

Muetze wrote a reply+100 XP

2mos ago

Livewire change response status code in full page component

I know this topic is old and probably no longer of interest to the author. But it was the first result I found when I searched the web. So I’m replying anyway.

Tested with LW 4:

    public function render()
    {
        return view('my-template')
            ->response(fn (Response $response) => $response->setStatusCode(403));
    }