Storage in laravel says symlink - no such file

后端 未结 12 1949
离开以前
离开以前 2020-12-07 22:39

I deployed laravel app on shared hosting in public_html/app folder. Here is everything from public folder. In /../../files I have rest of files. When I do php artisan storag

12条回答
  •  既然无缘
    2020-12-07 23:23

    I'm face same error when use share hosting and my public directory move to public_html or different directory like : project directory in root name "project" and public directory in root name "public_html"

    when run artisan command by Artisan::call('storage:link'); then face this error.

    Solution: 1st need to bind your public directory in app/Providers/AppServiceProvider register method

     $this->app->bind('path.public', function() {
        return base_path('../public_html');
     });
    

    Now run the command its working fine

提交回复
热议问题