P粉7594574202023-08-28 00:44:42
Another easy way is to programmatically run the php artisan storage:link
command
On routes/web.php
Route::get('/foo', function () { Artisan::call('storage:link'); });
P粉1333218392023-08-28 00:15:23
I solved this problem with another command that creates a symlink via terminal/cmd/shh:
ln -s /path/to/laravel/storage/app/public /path/to/public/storage
I also solved this problem, using laravel web routing routes/web.php
Route::get('/foo', function () { Artisan::call('storage:link'); });