Level 122
Each driver has its own way to check. The wordpress one looks for the presence of wp-config file
valet runs through all the drivers calling the serves method until one of them returns true
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi all, i asking my self how laravel valet knows which driver is should use? I understand how to write a driver with the SampleValetDriver.php but i can't find how Laravel Valet decide which driver is the correct one.
I'm trying to get shopware6 running with Laravel-Valet and i guess the Symfony-Driver is the correct one. This one gets shipping by laravel-valet out of the box.
Greetings from Germany,
Stefan
Each driver has its own way to check. The wordpress one looks for the presence of wp-config file
valet runs through all the drivers calling the serves method until one of them returns true
Please or to participate in this conversation.