DEV Community

Discussion on: Making the advanced query filter with Eloquent Filter in Laravel

Collapse
 
goppi0 profile image
goppi0

Thanks for your efforts. I'm new to laravel and didn't quite get it working. In particular the Request causes me issues. My controller is extended from Controller and has as a parameter Request. If I make all the changes as you outlined I got first of all a complain that Requests is unknown (I added the use statement for Requests back in) and thereafter the complain "Non-static method Illuminate\Http\Request::input() should not be called statically". What am I missing and what;s the solution?

Worth to mention - I'm using the latest Laravel and I'm wondering if that has already some functionality that supersedes your package?

Thanks,
Goppi

Collapse
 
mehdifathi profile image
Mehdi Fathi

Your problem is related to laravel.please read request laravel doc.

Collapse
 
aurelianspodarec profile image
Aurelian Spodarec

Do you think he didn't read before askign? This is quite toxic. I'm learning Laravel myself and I had that error before as well. I read the docs, and I didn't quite understand it, or I missed the docs or etiher didn't understand the docs.

A link pointing to that, and maybe saying what a "static" method is would be more helpful.

Assume that people read the docs when they post such comments...