'string', 'street_two' => 'string', 'city' => 'string', 'state' => 'string', 'post_code' => 'string', 'country' => 'string', 'default' => 'integer', 'billing' => 'integer' ]; /** * Validation rules * * @var array */ public static $rules = [ 'company_id' => 'required', 'street_one' => 'required', 'city' => 'required', 'state' => 'required', 'post_code' => 'required', 'country' => 'required', 'default' => 'required', 'billing' => 'required' ]; /** * @return \Illuminate\Database\Eloquent\Relations\HasOne **/ public function company(): HasOne { return $this->hasOne(\App\Models\Company::class, 'company_id', 'id'); } }