Skip to content

Instantly share code, notes, and snippets.

@filippotoso
Created March 22, 2018 14:11
Show Gist options
  • Save filippotoso/3a1522b508f73b2ede602902482a736b to your computer and use it in GitHub Desktop.
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
<?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