This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
5,753 additions
and
127 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php | ||
/** | ||
* For easier configuration when using Valet to serve local vhosts | ||
* LocalValetDriver.php file extending the default WordPressValerDriver | ||
* to serve the content of the web/ directory | ||
* | ||
* @see https://laravel.com/docs/8.x/valet#custom-valet-drivers | ||
*/ | ||
class LocalValetDriver extends WordPressValetDriver { | ||
/** | ||
* Determine if the driver serves the request. | ||
* | ||
* @param string $sitePath | ||
* @param string $siteName | ||
* @param string $uri | ||
* @return bool | ||
*/ | ||
public function serves($sitePath, $siteName, $uri) { | ||
$sitePath .= '/web'; | ||
return parent::serves($sitePath, $siteName, $uri); | ||
} | ||
|
||
/** | ||
* isStaticFile determine if the incoming request is for a file that is "static" | ||
* | ||
* @param string $sitePath | ||
* @param string $siteName | ||
* @param string $uri | ||
* @return bool | ||
*/ | ||
public function isStaticFile($sitePath, $siteName, $uri) { | ||
$sitePath .= '/web'; | ||
return parent::isStaticFile($sitePath, $siteName, $uri); | ||
} | ||
|
||
/** | ||
* Get the fully resolved path to the application's front controller. | ||
* | ||
* @param string $sitePath | ||
* @param string $siteName | ||
* @param string $uri | ||
* @return string | ||
*/ | ||
public function frontControllerPath($sitePath, $siteName, $uri) { | ||
$sitePath .= '/web'; | ||
return parent::frontControllerPath( | ||
$sitePath, | ||
$siteName, | ||
$this->forceTrailingSlash($uri) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.