mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 07:02:34 +01:00
eddb9adc73
* Clean up Client Show * Working on Show Client menu action * working on client view permissions * Finishing up Client Statement View * Workig on client settings * add mix manifest * css for client settings * Client Settings * Working on Client Settings * Implement StartupCheck and static seeders * Implement cached statics in view composers * Working on client settings * Payment Terms * Working on Payment Terms View Composer * Payment Terms builder * Client Settings * refactor companies table * Refactor for company settings, move settings to json * Set object cast on settings column of Company table * Fixes for refactor of companies and clients table * Test * Client Settings Datamapper * Client Settings * Default client language * Client Settings * Working on client settings options * Client Settings * Settings Json serialization/deserialization handling
58 lines
1.8 KiB
PHP
58 lines
1.8 KiB
PHP
<?php
|
|
|
|
use App\Models\Industry;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class IndustrySeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
Eloquent::unguard();
|
|
|
|
$industries = [
|
|
['name' => 'Accounting & Legal'],
|
|
['name' => 'Advertising'],
|
|
['name' => 'Aerospace'],
|
|
['name' => 'Agriculture'],
|
|
['name' => 'Automotive'],
|
|
['name' => 'Banking & Finance'],
|
|
['name' => 'Biotechnology'],
|
|
['name' => 'Broadcasting'],
|
|
['name' => 'Business Services'],
|
|
['name' => 'Commodities & Chemicals'],
|
|
['name' => 'Communications'],
|
|
['name' => 'Computers & Hightech'],
|
|
['name' => 'Defense'],
|
|
['name' => 'Energy'],
|
|
['name' => 'Entertainment'],
|
|
['name' => 'Government'],
|
|
['name' => 'Healthcare & Life Sciences'],
|
|
['name' => 'Insurance'],
|
|
['name' => 'Manufacturing'],
|
|
['name' => 'Marketing'],
|
|
['name' => 'Media'],
|
|
['name' => 'Nonprofit & Higher Ed'],
|
|
['name' => 'Pharmaceuticals'],
|
|
['name' => 'Professional Services & Consulting'],
|
|
['name' => 'Real Estate'],
|
|
['name' => 'Retail & Wholesale'],
|
|
['name' => 'Sports'],
|
|
['name' => 'Transportation'],
|
|
['name' => 'Travel & Luxury'],
|
|
['name' => 'Other'],
|
|
['name' => 'Photography'],
|
|
['name' => 'Construction'],
|
|
['name' => 'Restaurant & Catering'],
|
|
];
|
|
|
|
foreach ($industries as $industry) {
|
|
$record = Industry::whereName($industry['name'])->first();
|
|
if (! $record) {
|
|
Industry::create($industry);
|
|
}
|
|
}
|
|
|
|
Eloquent::reguard();
|
|
}
|
|
}
|