Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. //this is how i store my images
  2. if($request->hasFile('photo')){
  3. $pub->photo = $request->photo->store('images');
  4. }
  5. // this is my filesystemes config
  6. 'local' => [
  7. 'driver' => 'local',
  8. 'root' => storage_path('app/public'),
  9. ],
  10.  
  11. 'public' => [
  12. 'driver' => 'local',
  13. 'root' => storage_path('image'),
  14. 'url' => env('APP_URL').'/storage',
  15. 'visibility' => 'public',
  16. ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement