Skip to content
Snippets Groups Projects
Commit b2e9e5dd authored by Awab Al Naqshbandy's avatar Awab Al Naqshbandy
Browse files

1.0

parent f8ac7b61
No related branches found
No related tags found
No related merge requests found
<?php
class LocalValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
* @return bool
*/
public function serves($sitePath, $siteName, $uri): bool
{
$_uri = explode('/',$uri);
if($_uri[1]=='server'){
return true;
}
return false;
}
public function isStaticFile($sitePath, $siteName, $uri)
{
return false;
}
/**
* 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): string
{
return $sitePath . '/server/index.php';
}
}
# Bachelor's Thesis
Conceptualization and Prototypical Implementation of a Digital Knowledge-Work Platform Based on the Concept of Virtual Knowledge Spaces.
# Notes
* The file 'LocalValetDriver.php' is required only to allow the server to work with Laravel Valet, it is not part of the work.
* The consists of the files inside the two folders 'client' and 'server'.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment