User needs to have ability to limit upload size and I set that variable and now validation is giving me problems. I have this in my validation
$var = Model::where('id','=','1')->first();
'file' => "'max:".$up."'",
Method [validate'max] does not exist.
$up = 10; then validation string must be
Removing single quotes around the max will solve the problem.
So you have to change yout code from:
'file' => "'max:".$up."'" to
'file' => "max:".$up