fixed settings cache
This commit is contained in:
@ -29,11 +29,12 @@ class CreateCompany extends Job
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
// Clear settings
|
||||
setting()->forgetAll();
|
||||
|
||||
$this->company = Company::create($this->request->all());
|
||||
|
||||
// Clear settings
|
||||
setting()->setExtraColumns(['company_id' => $this->company->id]);
|
||||
setting()->forgetAll();
|
||||
|
||||
$this->callSeeds();
|
||||
|
||||
$this->updateSettings();
|
||||
@ -64,8 +65,6 @@ class CreateCompany extends Job
|
||||
|
||||
protected function updateSettings()
|
||||
{
|
||||
setting()->setExtraColumns(['company_id' => $this->company->id]);
|
||||
|
||||
if ($this->request->file('logo')) {
|
||||
$company_logo = $this->getMedia($this->request->file('logo'), 'settings', $this->company->id);
|
||||
|
||||
|
Reference in New Issue
Block a user