How to get conditional results using connector with laravel

Could you give more examples on it?
For example, the grid. The document gives the grid retrieving all the data, while usually we need only a part of them for some reasons, say privilege. How to use the results of laravel model queries?

Thanks

Instead of providing the model

$connector->configure( new SchedulerEvent(), "event_id", "start_date, end_date, event_name" );

You can provide a result set with all necessary filters applied

$connector->configure( SchedulerEvent::where('user_id', '=', 1)->get(), "event_id", "start_date, end_date, event_name" );

Thanks for ur reply, Stanislav.

But unfortunately it doesn’t work.
If I go as your suggested, the result is a collection and there’s an error like this

ErrorException in PHPLaravelDBDataWrapper.php line 14:
Non-static method Illuminate\Support\Collection::all() should not be called statically, assuming $this from incompatible context

If I go like this:

$connector->configure(
SchedulerEvent::where(‘user_id’, ‘=’, 1)->first(),
“event_id”,
“start_date, end_date, event_name”
);

It works without errors, but the grids still have all records instead of the query result with only one record.

And how to use dataconnector with Laravel on server side so that it can process the request from the client which has insert/update/delete actions using datastore and dataprocessor.

Thanks