22 lines
594 B
PHP
22 lines
594 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class LeadCall extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $casts = [
|
|
'call_start_time' => 'datetime:Y-m-d H:i:s',
|
|
];
|
|
|
|
protected $fillable = ['leads_id','type','call_to','related_to','call_from','call_type','outgoing_call_status','call_start_time','voice_recording','call_result','call_purpose','call_agenda','description','status','created_by'];
|
|
|
|
public function admin(){
|
|
return $this->belongsTo(User::class, 'created_by');
|
|
}
|
|
}
|