%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/geotechnics/api/app/Models/
Upload File :
Create Path :
Current File : /var/www/html/geotechnics/api/app/Models/CompanyProfile.php

<?php

namespace App\Models;

/**
 * @property integer id
 * @property integer user_id
 * @property integer country_id
 * @property string name
 * @property string company
 * @property string email
 * @property string phone
 * @property string city
 * @property string street
 * @property string zip_code
 * @property Country country
 * @property User user
 */
class CompanyProfile extends BaseModel
{

    protected $guarded = [
        'user_id',
    ];

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name',
        'company',
        'email',
        'phone',
        'city',
        'street',
        'zip_code',
        'country_id',
    ];

    protected $casts = [
        'id'         => 'integer',
        'user_id'    => 'integer',
        'country_id' => 'integer',
        'name'       => 'string',
        'company'    => 'string',
        'email'      => 'string',
        'phone'      => 'string',
        'city'       => 'string',
        'street'     => 'string',
        'zip_code'   => 'string',
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function country()
    {
        return $this->belongsTo(Country::class);
    }

}



Zerion Mini Shell 1.0