Skip to content

Commit 42834e2

Browse files
committed
use local valet driver as name
1 parent 26d39ae commit 42834e2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

cli/drivers/ValetDriver.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ abstract public function frontControllerPath($sitePath, $siteName, $uri);
4343
public static function assign($sitePath, $siteName, $uri)
4444
{
4545
$drivers = [];
46-
46+
4747
if ($customSiteDriver = static::customSiteDriver($sitePath)) {
4848
$drivers[] = $customSiteDriver;
4949
}
50-
50+
5151
$drivers = array_merge($drivers, static::driversIn(VALET_HOME_PATH.'/Drivers'));
5252

5353
$drivers[] = 'LaravelValetDriver';
@@ -78,7 +78,7 @@ public static function assign($sitePath, $siteName, $uri)
7878
}
7979
}
8080
}
81-
81+
8282
/**
8383
* Get the custom driver class from the site path, if one exists.
8484
*
@@ -87,13 +87,13 @@ public static function assign($sitePath, $siteName, $uri)
8787
*/
8888
public static function customSiteDriver($sitePath)
8989
{
90-
if (! file_exists($sitePath.'/SiteValetDriver.php')) {
90+
if (! file_exists($sitePath.'/LocalValetDriver.php')) {
9191
return;
9292
}
93-
94-
require_once $sitePath.'/SiteValetDriver.php';
95-
96-
return 'SiteValetDriver';
93+
94+
require_once $sitePath.'/LocalValetDriver.php';
95+
96+
return 'LocalValetDriver';
9797
}
9898

9999
/**

0 commit comments

Comments
 (0)