⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
hospital.dev-unit.com
/
app
/
Models
/
View File Name :
RadiologyTest.php
<?php namespace App\Models; use App\Traits\PopulateTenantID; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Stancl\Tenancy\Database\Concerns\BelongsToTenant; /** * Class RadiologyTest * * @version April 13, 2020, 5:06 am UTC * * @property string test_name * @property string short_name * @property string test_type * @property int category_id * @property string subcategory * @property int report_days * @property int charge_category_id * @property int $id * @property string $test_name * @property string $short_name * @property string $test_type * @property int $category_id * @property string|null $subcategory * @property int|null $report_days * @property int $charge_category_id * @property float $standard_charge * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read \App\Models\ChargeCategory $chargecategory * @property-read \App\Models\RadiologyCategory $radiologycategory * * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest newQuery() * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest query() * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest whereCategoryId($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest whereChargeCategoryId($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest whereReportDays($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest whereShortName($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest whereStandardCharge($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest whereSubcategory($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest whereTestName($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest whereTestType($value) * @method static \Illuminate\Database\Eloquent\Builder|RadiologyTest whereUpdatedAt($value) * * @mixin \Eloquent */ class RadiologyTest extends Model { use BelongsToTenant, PopulateTenantID; public $table = 'radiology_tests'; public $fillable = [ 'test_name', 'short_name', 'test_type', 'category_id', 'subcategory', 'report_days', 'charge_category_id', 'standard_charge', 'charge_id', 'patient_id', ]; /** * Validation rules * * @var array */ public static $rules = [ 'test_name' => 'required', 'short_name' => 'required', 'test_type' => 'required', 'category_id' => 'required', 'charge_category_id' => 'required', 'standard_charge' => 'required', 'patient_id' => 'required', ]; /** * Get the attributes that should be cast. * * @return array<string, string> */ protected function casts(): array { return [ 'id' => 'integer', 'test_name' => 'string', 'short_name' => 'string', 'test_type' => 'string', 'category_id' => 'integer', 'subcategory' => 'string', 'report_days' => 'integer', 'charge_category_id' => 'integer', 'standard_charge' => 'double', 'patient_id' => 'integer', ]; } public function radiologycategory(): BelongsTo { return $this->belongsTo(RadiologyCategory::class, 'category_id'); } public function chargecategory(): BelongsTo { return $this->belongsTo(ChargeCategory::class, 'charge_category_id'); } public function patient(): BelongsTo { return $this->belongsTo(Patient::class, 'patient_id'); } }