Skip to content

Hi laravel9 Treegird Connector issue #20

Description

@mesutgunay

Hi i use laravel9 on TreeGridConnector but
this not working;

namespace App\Http\Controllers;

use App\Models\Test;
use Illuminate\Http\Request;
use Dhtmlx\Connector\TreeGridConnector;

class TestController extends Controller
{
public function index()
{
return view('test');
}

public function test_get()
{
$data = Test::get()->toArray();
$treegrid = new TreeGridConnector(null, "PHPLaravel");
$treegrid->configure($data,"id","name","", "parent_id");
 $treegrid->render();

}

}

Thic code return http500
if i changed this line
//$treegrid->configure($data,"id","name","", "parent_id"); //
$treegrid->configure(new Test(),"id","name","", "parent_id");
array_key_exsist()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions