mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-07-30 20:16:46 -04:00
14 lines
381 B
PHP
14 lines
381 B
PHP
<?php
|
|
namespace Modules\SidebarManager\Entities;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class Backendmenu extends Model
|
|
{
|
|
use HasFactory;
|
|
protected $guarded = ['id'];
|
|
public function children(){
|
|
return $this->hasMany(Backendmenu::class, 'parent_id', 'id')->with('children')->orderBy('position');
|
|
}
|
|
}
|