Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/clinic.corals.io/app/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/clinic.corals.io/app/Models/WeekDay.php
<?php

namespace App\Models;

use Eloquent;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Carbon;


/**
 * App\Models\WeekDay
 *
 * @property int $id
 * @property int $doctor_id
 * @property int $doctor_session_id
 * @property string $day_of_week
 * @property string $start_time
 * @property string $end_time
 * @property string $start_time_type
 * @property string $end_time_type
 * @property Carbon|null $created_at
 * @property Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay query()
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay whereDayOfWeek($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay whereDoctorId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay whereDoctorSessionId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay whereEndTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay whereEndTimeType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay whereStartTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay whereStartTimeType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|WeekDay whereUpdatedAt($value)
 * @mixin Eloquent
 * @property-read mixed $full_end_time
 * @property-read mixed $full_start_time
 * @property-read \App\Models\DoctorSession $doctorSession
 */
class WeekDay extends Model
{
    use HasFactory;

    public $table = 'session_week_days';

    public $fillable = [
        'doctor_id',
        'doctor_session_id',
        'day_of_week',
        'start_time',
        'end_time',
        'start_time_type',
        'end_time_type',
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'doctor_session_id' => 'integer',
        'day'               => 'string',
    ];

    public function getFullStartTimeAttribute()
    {
        return $this->start_time.' '.$this->start_time_type;
    }

    public function getFullEndTimeAttribute()
    {
        return $this->end_time.' '.$this->end_time_type;
    }

    public function doctorSession()
    {
        return $this->belongsTo(DoctorSession::class);
    }
}

Spamworldpro Mini