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

DaemonKeen's avatar

DaemonKeen wrote a reply+100 XP

3mos ago

Can validation be stopped on specific failures?

I've came across the same issue and solved it by creating a custom validation rule

that I've attached to the upcoming field with the field we want to stop on as parameter. Now when validator encounter the StopOnFailure it will look into the error bag for the 'driver' and throw exception.

return [
            'driver' => ['required', Rule::enum(ServiceDriver::class)],
            'name' => [new StopOnFailure('driver'), 'required', 'string', 'max:255']
];

I think this solution works but it isn't optimal. It bypasses Laravel's standard error collection and jumps straight to the response which can lead to issues.

DaemonKeen's avatar

DaemonKeen wrote a comment+100 XP

4mos ago

Everything New in Livewire 4: Ep 18, Appending to Islands

I’ve been getting a hard time this week about infinite scroll and optimization in Livewire (not fetching 50 posts on 5th page :D), and then you guys drop this feature like angels. Thank you.

DaemonKeen's avatar

DaemonKeen wrote a reply+100 XP

4mos ago

Dark Mode Remove

For anyone looking for the answer with Tailwind v4 (without tailwind.config.js), it's by adding @variant dark (false); to the resources/app.css