Это мой код
{< /p>
Код: Выделить всё
$imageName = time() . '.' . $request->image->extension();
$request->image->storeAs('PlantHealthy', $imageName, 'public');
$full = storage_path('app/public/PlantHealthy/' . $imageName);
$plant->image = url('storage/PlantHealthy/' . $imageName); // Adjusted to use 'storage' for public access
Подробнее здесь: https://stackoverflow.com/questions/796 ... t-when-cli
Мобильная версия