KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/peoplebee.in/___accounts-admin/app/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/peoplebee.in/___accounts-admin/app/Models/VisitorEntry.php
<?php

namespace App\Models;

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

class VisitorEntry extends Model
{
    use HasFactory;

    protected $fillable = [
        "admin_id",
        "gatekeeper_id",
        "organization_id",
        "visitor_id",
        "visitor_name",
        "information_number",
        "gender",
        "id_type",
        "id_number",
        "organization",
        "designation",
        "visitor_mobile",
        "address",
        "city",
        "state",
        "pincode",
        "country",
        "profile_pic",
        "pre_approved_pass",
        "vehicle_type",
        "vehicle_number",
        "visitor_category_id",
        "number_of_visitor",
        "purpose_of_visit",
        "visiting_limit",
        "location_information",
        "pass_number",
        "contact_no",
        "check_in_time",
        "check_out_time",
        "gate",
        "fever",
        "sore_throat",
        "dry_cough",
        "running_nose",
        "covid_vaccination",
        "host_id",
        "host_department",
        "delivery_order",
        "min",
        "visit_date",
        "status",
        "remarks"
    ];

    public function host()
    {
        return $this->hasOne(Host::class,"id","host_id");
    }
    public function vehicle()
    {
        return $this->hasOne(Vehicle::class,"id","vehicle_type");
    }
    public function state_name()
    {
        return $this->hasOne(State::class,"id","state");
    }
    public function id_name()
    {
        return $this->hasOne(Identity::class,"id","id_type");
    }
    public function country_name()
    {
        return $this->hasOne(Country::class,"id","country");
    }
}

Anon7 - 2021