added language selection in company
This commit is contained in:
@ -44,6 +44,11 @@ class CreateCompany extends Job
|
||||
|
||||
protected function callSeeds()
|
||||
{
|
||||
// Set custom locale
|
||||
if ($this->request->has('locale')) {
|
||||
app()->setLocale($this->request->get('locale'));
|
||||
}
|
||||
|
||||
// Company seeds
|
||||
Artisan::call('company:seed', [
|
||||
'company' => $this->company->id
|
||||
|
@ -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')) {
|
||||
|
Reference in New Issue
Block a user