Laravel can't save photo

Laravel can't save photo

I have function code below but it won't save photo not in database nor in file path.

I have function code below but it won't save photo not in database nor in file path.

Code

public function store(Request $request)
    {
        $this->validate($request, array(
            'name' => 'required',
            'price' => 'required|numeric',
            'type_id' => 'required|numeric',
            'photo' => 'required',
        ));
        $item = new Menu;
        $item->name = $request->input('name');
        $item->price = $request->input('price');
        $item->type_id = $request->input('type_id');
        if ($request->hasFile('photo')) {
          $photo = $request->file('photo');
          $filename = 'MenuItem' . '-' . time() . '.' . $photo->getClientOriginalExtension();
          $location = public_path('images/'. $filename);
          Image::make($photo)->resize(500, 500)->save($location);
          $item->photo = $filename;
        }
        $item->save();
        Session::flash('success', 'Menu Item Saved Successfully.');
        return redirect()->back();
}

dd($request->all()); of code above

array:5 [▼
  "_token" => "awAvc7F8lOv9vKkfwyiTFj7jnQGszv8xjLQxcwRH"
  "name" => "test"
  "price" => "100"
  "photo" => "air putih.jpg"
  "type_id" => "1"
]

Any idea?

Update

Based on the Nabil Farhan answer below I was forgot about enctype="multipart/form-data" but now I'm getting

Intervention \ Image \ Exception \ NotReadableException
Unable to find file ().

Still not able to save my photo.

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Clear Cache in Laravel 6.8 App using Artisan Command Interface (CLI)

In Laravel 6 tutorial, we learn how to use PHP artisan command interface (CLI) to clear the cache from Laravel 6.8 application. How To Clear Cache in Laravel 6.8 Application using Artisan Command Line Interface (CLI)? How to clear route cache using php artisan command? How to easily clear cache in Laravel application? How to clear config cache in PHP Laravel via artisan command? How to clear Laravel view cache? How to Reoptimized class in Laravel via artisan CLI?

Get Weather Data with Laravel Weather

Get Weather Data with Laravel Weather. Laravel Weather is a good package which we can use to get weather data. It's a wrapper around Open Weather Map API (Current weather). A wrapper around Open Weather Map API (Current weather)

Laravel Sweet Alert | How to use the SweetAlert package in Laravel PHP

Sweet Alert is a laravel wrapper around #sweetalert javascript library for showing alert or notification message. This is a great package created by rashid, and this laravel package is very famous because it has tonnes of features you can choose from.