Non-static method should not be called statically Laravel

2019-10-22 11:00:37 Deepak Rao Laravel

Non-static method illuminate\http\request::all() should not be called statically

This issue was generated when we are calling a non-satic method of IlluminateHttpRequest class , To resolve the issue, Please use the FACADE rather than IlluminateHttpRequest. Import it at the top and use IlluminateHttpRequest code

use Request;

This post is submitted by one of our members. You may submit a new post here.

Related Tricks