Answer the question
In order to leave comments, you need to log in
Why is Laravel file validation not working?
Code snippet :
if (Request::hasFile('img1'))
{
$file=$request->file('img1');
$f_name=$file->getClientOriginalName();
$url_img='/site/img/product/'.$f_name;
$file->move($root,$f_name);
$ProdModel->img1=$url_img;
}
Non-static method Illuminate\Http\Request::hasFile() should not be called statically, assuming $this from incompatible context
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question