?
Current File : /home/sanghavirealty/www/appazwer/Models/Resource.php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Categoryiota;


class Resource extends Model
{
    use HasFactory;
    public $table="resource";
    const CREATED_AT = 'createdate';
    const UPDATED_AT = 'modifydate';


    
    public function getCategorybetaTitle()
    {
            return $this->hasOne(Categoryiota::class, 'id','parentid');
    }


    public static function getCategoryList(){

    
        return $getInsideCategory = Categoryiota::Where('parentid',0)->get();
    
    
    
    
    }



}