Skip to content

Commit

Permalink
clear settings before creating a new company
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Sep 22, 2017
1 parent ab6554d commit 11149af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/Api/Companies/Companies.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public function store(Request $request)
{
$company = Company::create($request->all());

// Clear settings
setting()->forgetAll();

// Create settings
setting()->set([
'general.company_name' => $request->get('company_name'),
Expand Down

0 comments on commit 11149af

Please sign in to comment.