if ($request->hasFile('image')) {
$image = $request->file('image');
// Will upload to /storage/public/472385852.jpg for example
$destination = 'public/' . time() . "." . $image->getClientOriginalExtension();
Storage::disk('local')->put($destination, file_get_contents($image->getRealPath()));
// You can store the $destination value to your database
}
your_view.blade.php
{{ dd(request()->route()->getAction()) }}