PATH:
home
/
lab2454c
/
tripvare.com
/
app
/
Models
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class VaccinationReview extends Model { use HasFactory; protected $fillable = [ 'vaccine_type', 'first_vaccine_date', 'last_vaccine_date', 'user_document', 'user_document_name', 'user_id' ]; // protected $casts = [ // 'first_vaccine_date' => 'datetime:M-d-Y', // 'last_vaccine_date' => 'datetime:M-d-Y', // ]; /** * User relationship. */ public function user() { return $this->belongsTo(User::class); } public function getDocumentSizeAttribute($size) { if ( $size > 0 ) { $size = (int) $size; $base = log($size) / log(1024); $suffixes = array(' bytes', ' KB', ' MB', ' GB', ' TB'); $size = round(pow(1024, $base - floor($base)), 2) . $suffixes[floor($base)]; } return $size; } }
[-] DynamicPage.php
[edit]
[-] TravelInformation.php
[edit]
[-] ImmunizationApplication.php
[edit]
[+]
..
[-] Country.php
[edit]
[-] TestReview.php
[edit]
[-] Help.php
[edit]
[-] BannerImage.php
[edit]
[-] StaticPage.php
[edit]
[-] ChecklistContent.php
[edit]
[-] VaccinationReview.php
[edit]
[-] Setting.php
[edit]
[-] ApiImage.php
[edit]
[-] Copyright.php
[edit]
[-] Contact.php
[edit]
[-] TravelAuthorization.php
[edit]
[-] Gallery.php
[edit]
[-] MembershipInformation.php
[edit]
[-] VaccinationReviewContent.php
[edit]
[-] Admin.php
[edit]
[-] Organization.php
[edit]
[-] User.php
[edit]
[-] SocialLink.php
[edit]
[-] LegalConsent.php
[edit]
[-] Reward.php
[edit]