added language selection in company

This commit is contained in:
denisdulici
2020-02-27 11:32:44 +03:00
parent 3c9c75f267
commit befb921d3e
4 changed files with 9 additions and 8 deletions

View File

@ -33,17 +33,13 @@ class UpdateCompany extends Job
*/
public function handle()
{
// Check if user can access company
$this->authorize();
// Update company
$this->company->update($this->request->all());
// Clear current settings
// Clear current and load given company settings
setting()->setExtraColumns(['company_id' => $this->company->id]);
setting()->forgetAll();
// Load settings based on the given company
setting()->load(true);
if ($this->request->has('name')) {