address field detailed (city, zip_code, state, country)
This commit is contained in:
		@@ -100,6 +100,10 @@ class CreateCompany extends Job
 | 
			
		||||
            'company.tax_number' => $this->request->get('tax_number'),
 | 
			
		||||
            'company.phone' => $this->request->get('phone'),
 | 
			
		||||
            'company.address' => $this->request->get('address'),
 | 
			
		||||
            'company.city' => $this->request->get('city'),
 | 
			
		||||
            'company.zip_code' => $this->request->get('zip_code'),
 | 
			
		||||
            'company.state' => $this->request->get('state'),
 | 
			
		||||
            'company.country' => $this->request->get('country'),
 | 
			
		||||
            'default.currency' => $this->request->get('currency'),
 | 
			
		||||
            'default.locale' => $this->request->get('locale', 'en-GB'),
 | 
			
		||||
        ]);
 | 
			
		||||
 
 | 
			
		||||
@@ -67,6 +67,22 @@ class UpdateCompany extends Job
 | 
			
		||||
                setting()->set('company.address', $this->request->get('address'));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if ($this->request->has('city')) {
 | 
			
		||||
                setting()->set('company.city', $this->request->get('city'));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if ($this->request->has('zip_code')) {
 | 
			
		||||
                setting()->set('company.zip_code', $this->request->get('zip_code'));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if ($this->request->has('state')) {
 | 
			
		||||
                setting()->set('company.state', $this->request->get('state'));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if ($this->request->has('country')) {
 | 
			
		||||
                setting()->set('company.country', $this->request->get('country'));
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if ($this->request->has('currency')) {
 | 
			
		||||
                setting()->set('default.currency', $this->request->get('currency'));
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user