How to create laravel storage symbolic link for production or sub domain system?

前端 未结 6 641
天涯浪人
天涯浪人 2021-02-04 02:41

When I worked on laravel local development server php artisan storage:link works fine for me. But when I transfer my site to production server then I saw my public

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-04 03:03

    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');
    });
    

提交回复
热议问题