Sindbad~EG File Manager

Current Path : /home/copmadinaarea/creditunion.copeastlegondistrict.org/app/Models/
Upload File :
Current File : /home/copmadinaarea/creditunion.copeastlegondistrict.org/app/Models/NavigationItem.php

<?php

namespace App\Models;

use App\Traits\Translatable;
use Illuminate\Database\Eloquent\Model;

class NavigationItem extends Model {
    use Translatable;
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'navigation_items';

    public function child_items() {
        return $this->hasMany('App\Models\NavigationItem', 'parent_id');
    }

    public function page() {
        return $this->belongsTo('App\Models\Page', 'page_id')->withDefault();
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists