I am trying to upload my video on my website but I keep getting an error in laravel Illuminate \ Http \ Exceptions \ PostTooLargeException No message no matter how much I change everything I keep getting the same thing. Here is how I set my php ini
memory_limit = 3000M
post_max_size = 2000M
upload_max_filesize = 1000M
form
{!!Form::open(array('route'=>'profile.store','class'=>'formform','files'=>'true')) !!}
{{Form::file('video',array('id'=>'file','class'=>'thefile'))}}
{!!Form::close() !!}
the controller
$this->validate($request,array(
'video' => 'required|mimes:mp4,flv,wmv,avi,mov,qt',
));
$pro=new Profile;
$vid = $request->file('video');
$filename = uniqid().$vid->getClientOriginalName();
$path = $vid->storeAs(
'introvideo',
$filename);
$location = public_path('/vids',$filename);
$vid->move($location);
$pro->profile = $filename;
$pro->save();
return redirect('dashboard')->with('success','Your business is now listed!');
}