Non-static method should not be called statically Laravel

2024-03-04 04:33:53 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