Store Image dans le dossier public Laravel 8
php artisan storage:link
Thoughtless Teira
php artisan storage:link
<?php
if($request->hasFile('image')){
$image = $request->file('image');
$image_name = $image->getClientOriginalName();
$image->move(public_path('/images'),$image_name);
$image_path = "/images/" . $image_name;
}
?>
$request->file('image')->move(public_path() . 'users/' . $user->id . '.jpg');
// or
$request->file('image')->move(public_path('users/' . $user->id . '.jpg'));