Skip to content

Instantly share code, notes, and snippets.

View prapats's full-sized avatar

Prapat Shantavasinkul prapats

  • Bangkok, Thailand
View GitHub Profile
@prapats
prapats / Car.js
Created May 19, 2020 09:08
AdonisJS DI
'use strict'
class Car {
constructor(driver) {
this.driver = driver
}
run() {
this.driver.drive()
<?php
class EducationDetail extends Model{
fatherEducationLevel{
return $this->belongsToOne('EducationLevel');
}
motherEducationLevel{
return $this->belongsToOne('EducationLevel');
<?php
class EducationDetail extends Model{
fatherEducationLevel{
return $this->belongsToOne('EducationLevel');
}
motherEducationLevel{
return $this->belongsToOne('EducationLevel');