To access the data we need to specify the appropriate model class.
To know more about using models, read the Eloquent ORM guide from the Laravel framework documentation.
"GanttTask.php" file
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class GanttTask extends Model
{
protected $table = "gantt_tasks";
public $primaryKey = "id";
public $timestamps = false;
}
"GanttLink.php" file
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class GanttLink extends Model
{
protected $table = "gantt_links";
public $primaryKey = "id";
public $timestamps = false;
}
"SchedulerEvent.php" file
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class SchedulerEvent extends Model
{
protected $table = "scheduler_events";
public $primaryKey = "event_id";
public $timestamps = false;
}