D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
forge
/
hms.dentostock.com
/
app
/
Models
/
Filename :
CallLog.php
back
Copy
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * App\Models\CallLog * * @property int $id * @property string $name * @property string|null $phone * @property string|null $date * @property string|null $follow_up_date * @property string|null $note * @property int $call_type * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * * @method static \Illuminate\Database\Eloquent\Builder|CallLog newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|CallLog newQuery() * @method static \Illuminate\Database\Eloquent\Builder|CallLog query() * @method static \Illuminate\Database\Eloquent\Builder|CallLog whereCallType($value) * @method static \Illuminate\Database\Eloquent\Builder|CallLog whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|CallLog whereDate($value) * @method static \Illuminate\Database\Eloquent\Builder|CallLog whereFollowUpDate($value) * @method static \Illuminate\Database\Eloquent\Builder|CallLog whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|CallLog whereName($value) * @method static \Illuminate\Database\Eloquent\Builder|CallLog whereNote($value) * @method static \Illuminate\Database\Eloquent\Builder|CallLog wherePhone($value) * @method static \Illuminate\Database\Eloquent\Builder|CallLog whereUpdatedAt($value) * * @mixin \Eloquent */ class CallLog extends Model { protected $table = 'call_logs'; const INCOMING = 1; const OUTCOMING = 2; const CALLTYPE_ARR = [ '0' => 'All', '1' => 'Incoming', '2' => 'Outgoing', ]; protected $fillable = [ 'name', 'phone', 'date', 'description', 'follow_up_date', 'note', 'call_type', ]; protected $casts = [ 'id' => 'integer', 'name' => 'string', 'phone' => 'integer', 'date' => 'date', 'description' => 'string', 'follow_up_date' => 'string', 'note' => 'string', 'call_type' => 'integer', ]; public static $rules = [ 'name' => 'required', ]; }