Skip to content

Commit 2583935

Browse files
Merge pull request #3 from ArtiBorisevich/update
updated
2 parents e9c0382 + a137bec commit 2583935

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

config/database.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
'charset' => 'utf8mb4',
5151
'collation' => 'utf8mb4_unicode_ci',
5252
'prefix' => '',
53-
'strict' => true,
53+
'strict' => false,
5454
'engine' => null,
5555
],
5656

readme.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ Implementing backend for dhtmlxGantt using Laravel framework.
1414

1515
1. run `composer install`
1616
2. Create database and update connection settings in **.env**
17-
3. Create and populate tables `php artisan migrate --seed`
17+
3. Create artisan key `php artisan key:generate`
18+
4. Create and populate tables `php artisan migrate --seed`
1819

1920
### Run
2021

resources/views/gantt.blade.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@
1717
<body>
1818
<div id="gantt_here" style='width:100%; height:100%;'></div>
1919
<script type="text/javascript">
20-
gantt.config.xml_date = "%Y-%m-%d %H:%i:%s";
20+
gantt.config.date_format = "%Y-%m-%d %H:%i:%s";
2121
gantt.config.order_branch = true;/*!*/
2222
gantt.config.order_branch_free = true;/*!*/
2323
gantt.init("gantt_here");
2424
2525
gantt.load("/api/data");
2626
27-
var dp = new gantt.dataProcessor("/api");/*!*/
28-
dp.init(gantt);/*!*/
29-
dp.setTransactionMode("REST");/*!*/
27+
const dp = gantt.createDataProcessor({
28+
url: "/api",
29+
mode: "REST"
30+
});
3031
</script>
3132
</body>

0 commit comments

Comments
 (0)