⚝
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 :
SmartPatientCard.php
<?php namespace App\Models; use App\Traits\PopulateTenantID; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Stancl\Tenancy\Database\Concerns\BelongsToTenant; /** * App\Models\SmartPatientCard * * @property int $id * @property string $template_name * @property string $header_color * @property bool $show_email * @property bool $show_phone * @property bool $show_dob * @property bool $show_blood_group * @property bool $show_address * @property bool $show_patient_unique_id * @property string|null $tenant_id * @property \Illuminate\Support\Carbon|null $created_at * @property \Illuminate\Support\Carbon|null $updated_at * @property-read \App\Models\MultiTenant|null $tenant * * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard newQuery() * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard query() * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereHeaderColor($value) * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereShowAddress($value) * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereShowBloodGroup($value) * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereShowDob($value) * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereShowEmail($value) * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereShowPatientUniqueId($value) * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereShowPhone($value) * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereTemplateName($value) * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereTenantId($value) * @method static \Illuminate\Database\Eloquent\Builder|SmartPatientCard whereUpdatedAt($value) * * @mixin \Eloquent */ class SmartPatientCard extends Model { use BelongsToTenant, HasFactory, PopulateTenantID; public $table = 'smart_patient_cards'; public $fillable = [ 'template_name', 'header_color', 'show_email', 'show_phone', 'show_dob', 'show_blood_group', 'show_address', 'show_patient_unique_id', 'tenant_id', 'show_insurance', ]; /** * Validation rules * * @var array */ public static $rules = [ 'template_name' => 'required', 'header_color' => 'required', ]; /** * Get the attributes that should be cast. * * @return array<string, string> */ protected function casts(): array { return [ 'template_name' => 'string', 'header_color' => 'string', 'show_email' => 'boolean', 'show_phone' => 'boolean', 'show_dob' => 'boolean', 'show_blood_group' => 'boolean', 'show_address' => 'boolean', 'show_patient_unique_id' => 'boolean', ]; } }