%PDF- %PDF-
Direktori : /home/silvzytp/crm-ind-code/app/Models/ |
Current File : /home/silvzytp/crm-ind-code/app/Models/CallingSubStatus.php |
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class CallingSubStatus extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['user_id','status_id','name','status']; public function callingStatus(){ return $this->belongsTo(CallingStatus::class,'status_id','id'); } public function callings() { return $this->hasMany(Colling::class,'sub_status','id'); } }