芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/database/seeders/DatabaseSeeder.php
true]); Artisan::call('key:generate'); $this->call(CountriesTableSeeder::class); $this->call(SmtpSettingsSeeder::class); $this->call(CoreDatabaseSeeder::class); $this->call(ModulePermissionSeeder::class); $this->call(OrganisationSettingsTableSeeder::class); $companies = Company::select('id')->get(); foreach ($companies as $company) { if (!App::environment('codecanyon')) { $this->call(DepartmentTableSeeder::class, false, ['companyId' => $company->id]); $this->call(UsersTableSeeder::class, false, ['companyId' => $company->id]); $this->call(ProjectCategorySeeder::class, false, ['companyId' => $company->id]); $this->call(ProjectSeeder::class, false, ['companyId' => $company->id]); $this->call(EstimateSeeder::class, false, ['companyId' => $company->id]); $this->call(ExpenseSeeder::class, false, ['companyId' => $company->id]); $this->call(TicketSeeder::class, false, ['companyId' => $company->id]); $this->call(RoleSeeder::class, false, ['companyId' => $company->id]); $this->call(LeaveSeeder::class, false, ['companyId' => $company->id]); $this->call(NoticesTableSeeder::class, false, ['companyId' => $company->id]); $this->call(EventTableSeeder::class, false, ['companyId' => $company->id]); $this->call(LeadSeeder::class, false, ['companyId' => $company->id]); $this->call(TaxTableSeeder::class, false, ['companyId' => $company->id]); $this->call(ProductTableSeeder::class, false, ['companyId' => $company->id]); $this->call(ContractTypeTableSeeder::class, false, ['companyId' => $company->id]); $this->call(ContractTableSeeder::class, false, ['companyId' => $company->id]); $this->call(LeadsTableSeeder::class, false, ['companyId' => $company->id]); $this->call(MessageSeeder::class, false, ['companyId' => $company->id]); $this->call(ShiftSeeder::class, false, ['companyId' => $company->id]); $this->call(AttendanceTableSeeder::class, false, ['companyId' => $company->id]); } $this->call(EmployeePermissionSeeder::class, false, ['companyId' => $company->id]); } if (!App::environment('codecanyon')) { Artisan::call('sync-user-permissions all'); } config(['app.seeding' => false]); } }