Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lasse's avatar
Level 9

Method Livewire\Redirector::withInput does not exist.

I have installed Livewire on a fresh Laravel 10 install in PHP 8.2 as per the docs, and created this component:

<?php

namespace App\Http\Livewire;

use Livewire\Component;

class FilterAssignments extends Component
{
    public $someDate;

    protected $rules = [
        'someDate' => 'nullable|date_format:d.m.Y',
    ];

    public function render()
    {
        $this->validate();

        return view('livewire.filter-assignments');
    }
}

and this view:

<div>
    <input wire:model="someDate" type="date">
</div>

and included in on default welcome.php like this:

<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    @livewireStyles
</head>
<body>
<livewire:filter-assignments />
@livewireScripts
</body>
</html>

whenever I change the date I expect nothing to happen, as the validation should fail silently, but instead I get this error: Method Livewire\Redirector::withInput does not exist.

What am I missing?

0 likes
4 replies
vincent15000's avatar

All seems ok. Do you have further information about the error ?

lasse's avatar
Level 9

That's what's weird. Runs locally on Valet. It just should work, but it does not.

1 like
lasse's avatar
Level 9

Thanks for the reply, but it's the same after trying what is offered in the link, as well as when serving the site with php artisan serve. I have no idea. This also happens on a long established Laravel 9 project on php 8.0. I'm out of ideas.

1 like

Please or to participate in this conversation.