database/seeders/SettingTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Setting::query()->updateOrCreate(
            [
                'email' => 'support@w2charity.com'
            ], 
            [
                'email' => 'support@w2charity.com',
                'phone' => '081232323221',
                'phone_hours' => 'Senin - Jum\'at, 08:00 s/d 16:00',
                'owner_name' => 'Administrator',
                'company_name' => 'W2 Charity',
                'short_description' => '-',
                'keyword' => '-',
                'about' => '-',
                'address' => '-',
                'postal_code' => 12345,
                'city' => '-',
                'province' => '-',
                'instagram_link' => '-',
                'twitter_link' => '-',
                'fanpage_link' => '-',
                'google_plus_link' => '-'
            ]
        );
    }
public function run ( ) { Setting :: query ( ) -> updateOrCreate ( [ 'email' => 'support@w2charity.com' ] , [ 'email' => 'support@w2charity.com' , 'phone' => '081232323221' , 'phone_hours' => 'Senin - Jum\'at, 08:00 s/d 16:00' , 'owner_name' => 'Administrator' , 'company_name' => 'W2 Charity' , 'short_description' => '-' , 'keyword' => '-' , 'about' => '-' , 'address' => '-' , 'postal_code' => 12345 , 'city' => '-' , 'province' => '-' , 'instagram_link' => '-' , 'twitter_link' => '-' , 'fanpage_link' => '-' , 'google_plus_link' => '-' ] ) ; }
Run the database seeds.
Run the database seeds .