Created
November 24, 2016 17:24
-
-
Save tdchien/26a27c83d60885f802e4c26f5fab4a7b to your computer and use it in GitHub Desktop.
Symlink for laravel storage
This file contains hidden or 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 | |
// Put file to public dir and run it | |
$basePath = dirname(__DIR__); | |
$link = "$basePath/data"; | |
$target = "$basePath/storage/app"; | |
var_dump($target); | |
var_dump($link); | |
var_dump(symlink($target, $link)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment