tasks
id
user_id
task_type_id
data
task_types
id
service_id
name
class TaskType extends Model
{
public function tasks()
{
return $this->hasMany('App\Models\Task');
}
}
class Task extends Model
{
public function type() {
return $this->belongsTo('App\Models\TaskType');
}
}