Skip links

Laravel storage goes to 404 page. (Symlink not working)

This can happen because of many reasons. But solution to this is very simple

Step to follow:

  1. Delete storage folder that is inside public folder. (Dont delete main storage function)
  2. Link again.

Steps to create Symlink

//On Cli
php artisan storage:link
// no need to do anything more. It should be working Now! 
//without cli
Route::get('/link', function () {
    Artisan::call('storage:link');
return Artisan::output();
});

// then open /link url in browser. It should be working Now! 

Symlink should be working now!

Leave a comment