Answer the question
In order to leave comments, you need to log in
How to save a photo in public?
I'm doing a photo service and I need to save photos at this address site.ru/photos
Filesystems.php
'public' => [
'driver' => 'local',
'root' => public_path(''),
'url' => env('APP_URL'),
'visibility' => 'public',
],
$path = $request->file('photo')->store('photos','public');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question