how to use filter() in laravel.

Greetings, currently I am trying to filter project using project_id. Base on reference from this link, . I have tried using filter(). But no filtered task displayed on /gantt_data or /gantt. Instead it give blank chart. No error message found in laravel log.

This is my code in GanttController

public function data() {
        $connector = new GanttConnector(null, "PHPLaravel");

        $connector->render_links(new GanttLink(), "id", "source,target,type");
        $connector->filter("project_id", 1);
        $connector->render_table(new GanttTask(),"id","start_date,duration,text,progress,parent,project_id");

Is there any bug? or there is no filter for gantt chart. Only APPLICABLE TO:Grid, TreeGrid, Tree, Combo, Scheduler, DataView, Chart, Form, DataStore, DHTMLX Touch components ?

I have refer from here and nothing works

Help please. Thanks

In case of Laravel, you can use native methods of model to filter dataset.

$connector = new GanttConnector(null, "PHPLaravel"); $connector->configure( GanttTask::where('project_id', '=', 1)->get(), "id", "start_date,duration,text,progress,parent,project_id" ); $connector->render();

Be sure to update connector to the latest version