Skip to content

ashik3g/vimexx-directadmin-laravel-symlink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

vimexx-directadmin-laravel-symlink

#web.php

Route::get('/link-storage', function () {
    $targetFolder = base_path().'/storage/app/public';
    $linkFolder = $_SERVER['DOCUMENT_ROOT'].'/storage';
    symlink($targetFolder, $linkFolder); 
});

Cpanel Hosting Symlink for Laravel Application

Create a symlink.php file then write bottom code after that run the symlink.php file.

<?php 
symlink('/home/backoffice/storage/app/public', '/home/public_html/storage'); 
echo 'Symlink process successfully completed';
?>

About

Create Symlink for Laravel Application Storage

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published