Gantt not showing anything

Dear Friends.
I did the example with laravel.
I check many times everything.
No errors, but gantt not showing data.

Anyone can help?.

This is my ganttcontroller:


namespace App\Http\Controllers;

use App\Task;
use App\Link;

//use Illuminate\Http\Request;

class GanttController extends Controller
  public function get(){
      $tasks = new Task();
      $links = new Link();

      return response()->json([
			"data" => $tasks->all(),
			"links" => $links->all()


this is my view:

<!DOCTYPE html>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">

    <script src=""></script>
    <link href="" rel="stylesheet">

    <style type="text/css">
        html, body{
            overflow: hidden;

<div id="gantt_here" style='width:100%; height:100%;'></div>
<script type="text/javascript">

    gantt.config.xml_date = "%Y-%m-%d %H:%i:%s";



and my api:

Route::get('/data', 'GanttController@get');

Does your api.php route file have use Illuminate\Http\Request; string?
Have you tried the official demo?

Do you see that Gantt works, but doesn’t save the data or you don’t see Gantt at all? If you don’t get the data from the database, it might be related to routes or something else. But first, you need to check how it works with our demo as it has all necessary configurations.