How to create laravel storage symbolic link for production or sub domain system?
Solution 1:
I solved this problem by another command for creating a symbolic link by terminal/cmd/shh:
ln -s /path/to/laravel/storage/app/public /path/to/public/storage
I solved this also Using laravel web route routes/web.php
Route::get('/foo', function () {
Artisan::call('storage:link');
});
Solution 2:
Another simple way is to run Executing php artisan storage:link
Command Programmatically
On routes/web.php
Route::get('/foo', function () {
Artisan::call('storage:link');
});