2018-07-06 06:57:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
2022-04-21 04:41:26 +00:00
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
2018-07-06 06:57:49 +00:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Rtm extends Model
|
|
|
|
{
|
2022-04-21 04:41:26 +00:00
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
protected $table = 'rtm';
|
2018-07-06 06:57:49 +00:00
|
|
|
public $timestamps = FALSE;
|
2022-04-21 04:41:26 +00:00
|
|
|
|
|
|
|
/* 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
|
|
|
}
|