<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

use App\Models\FilesFolder;

class FilesFolder extends Model
{
    use HasFactory;
    protected $fillable = [
        'name',
        'picture',
        'order_number',
        'path',
        'parent_id',
        'file_template_id'
    ];
    
    public function getPathForFolder($parent_folder_id){
        
        // check parents for upto two level
        $parent = FilesFolder::where(['id'=>$parent_folder_id]);
        
    }
    
}
