belongsTo('App\Models\Permission','parent','id'); } public function childrens(){ return $this->hasMany('App\Models\Permission','parent','id'); } }