<?php

namespace App\Models;

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

use App\Models\PicturesFolder;

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