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

@ -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