Advertisement
Guest User

Untitled

a guest
Jul 12th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement