<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Accelerator extends Model { use HasFactory; protected $fillable=['accelerator_category_id','title','description','image','status']; public function accelerator_category(){ return $this->belongsTo(AcceleratorCategory::class,'accelerator_category_id')->withDefault(); } }