Created
March 22, 2018 14:11
-
-
Save filippotoso/3a1522b508f73b2ede602902482a736b to your computer and use it in GitHub Desktop.
Update the Larevel's public/index.php file to work outside the project folder
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
<?php | |
$content = file_get_contents(__DIR__ . '/project/public/index.php'); | |
$content = str_replace("__DIR__.'/../", "__DIR__.'/../project/", $content); | |
file_put_contents(__DIR__ . '/project/public/index.php', $content); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment