SHARE
TWEET

Untitled

a guest Jul 12th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Open the file
  2.  
  3. config/filesystems.php
  4.  
  5. Replace 'root' => storage_path('app/public') with 'root' => storage_path('app/public_html')
  6.  'public' => [
  7.             'driver' => 'local',
  8.             'root' => storage_path('app/public_html'),
  9.             'url' => env('APP_URL').'/storage',
  10.             'visibility' => 'public',
  11.         ],
  12.  
  13. And
  14.  
  15. open
  16.  
  17. app/Providers/AppServiceProvider
  18.  
  19. Bind public directory in app/Providers/AppServiceProvider register method
  20.  
  21.  public function register()
  22.     {
  23.         $this->app->bind('path.public', function() {
  24.             return base_path('public_html');
  25.         });
  26.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top