Hii Im making project for school, and its a site where users can upload videos, I set the max upload file to 85MB on php.ini, the problem is that if I upload files larger than this then QueryException is thrown, same happens if I fill a description too large or a name too large.
This is the store method on my VideoController (even having max:255 on description throws QueryException anyways)
public function store(Request $request)
{
$request->validate([
'title'=>'required|unique:videos|max:55',
'desc'=>'required|max:255',
'video'=>'required',
]);
$pathV=$request->file('video')->store('videos','public');
$user = Auth::user()->id;
Video::create(['title'=>$request->title,
'cont'=>$pathV,
'desc'=>$request->desc,
'user'=>$user
]);
$videos=Video::all();
return view('videos.all',compact('videos'));
}