Documents ready

This commit is contained in:
Александр Бабкин
2022-07-04 14:53:54 +03:00
parent 62482b624d
commit 621b1fd677
12 changed files with 254 additions and 139 deletions

View File

@@ -16,9 +16,8 @@ class Document extends Model
'parent_id',
];
public function childs() {
return $this->hasMany('App\Category','parent_id','id') ;
public function childs()
{
return $this->hasMany('App\Models\Document','parent_id','id');
}
}