Skip to content

Commit

Permalink
set the company settings in api
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Jan 22, 2018
1 parent 9f3b563 commit 153f745
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Middleware/ApiCompany.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public function handle($request, Closure $next)
// Set company id
session(['company_id' => $company_id]);

// Set the company settings
setting()->setExtraColumns(['company_id' => $company_id]);
setting()->load(true);

return $next($request);
}

Expand Down

0 comments on commit 153f745

Please sign in to comment.