Skip to content

Commit

Permalink
Update valet driver (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
vguerrerobosch authored Jul 5, 2022
1 parent a5a34aa commit 5addfc5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,19 @@ declare(strict_types=1);

final class LocalValetDriver extends BasicValetDriver
{
public function serves(string $sitePath): bool
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
* @return bool
*/
public function serves($sitePath, $siteName, $uri)
{
return is_dir($sitePath . '/vendor/wordplate/framework');
return is_dir($sitePath.'/public/wordpress/wp-admin');
}

/**
* @return false|string
*/
Expand Down

0 comments on commit 5addfc5

Please sign in to comment.