osb/app/Models/Rtm.php

26 lines
432 B
PHP
Raw Normal View History

2018-07-06 06:57:49 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
2018-07-06 06:57:49 +00:00
use Illuminate\Database\Eloquent\Model;
class Rtm extends Model
{
use HasFactory;
protected $table = 'rtm';
2018-07-06 06:57:49 +00:00
public $timestamps = FALSE;
/* RELATIONS */
/**
* Subordinate RTM entries
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function children()
{
return $this->hasMany(self::class,'parent_id');
}
2018-07-06 06:57:49 +00:00
}