You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I define a filter whose value I can retrieve inside the resolveUsing() callback of a field? The filter should not be applied globally, but within the field's callback.
It seems like out of the box I can only retrieve the value from within the query() function, because of the Laravel\Nova\Http\Requests\LensRequest vs. Illuminate\Http\Request.
The text was updated successfully, but these errors were encountered:
LensRequest extends NovaRequest which itself extends Request and it looks like we're passing an instance of NovaRequest to the fields() function, so you should be fine.
Ok, your are correct! It is in fact no problem with the request object passed to the fields function for the normal index query.
I use laravel-nova-excel to export the results, but for exporting the passed Maatwebsite\LaravelNovaExcel\Requests\ExportLensActionRequest (which is also a NovaRequest and has the filters function), does not hold the active filter values.
Can I define a filter whose value I can retrieve inside the
resolveUsing()
callback of a field? The filter should not be applied globally, but within the field's callback.It seems like out of the box I can only retrieve the value from within the
query()
function, because of theLaravel\Nova\Http\Requests\LensRequest
vs.Illuminate\Http\Request
.The text was updated successfully, but these errors were encountered: