1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 17:10:05 +01:00
This commit is contained in:
Taylor Otwell
2016-05-06 15:06:42 -05:00
3 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
class SculpinValetDriver extends BasicValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
* @return void
*/
public function serves($sitePath, $siteName, $uri)
{
return is_dir($sitePath.'/.sculpin');
}
/**
* Mutate the incoming URI.
*
* @param string $uri
* @return string
*/
public function mutateUri($uri)
{
return rtrim('/output_dev'.$uri, '/');
}
}