database/seeders/WebSettingSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $settings = Setting::first();
        if (!$settings) {
            DB::table('settings')->insert([
                'website_name' => 'GraceHand',
                'website_logo' => '',
                'facebook_link' => '',
                'twitter_link' => '',
                'linkedin_link' => '',  
                'about_content' => '',
                'ceo_name' => '',
                'ceo_picture' => '',
                'email' => '',
                'address' => '',
                'phone' => '',
                'short_desc' => '',
            ]);
        }
    }
public function run ( ) { $ settings = Setting :: first ( ) ; if ( ! $ settings ) { DB :: table ( 'settings' ) -> insert ( [ 'website_name' => 'GraceHand' , 'website_logo' => '' , 'facebook_link' => '' , 'twitter_link' => '' , 'linkedin_link' => '' , 'about_content' => '' , 'ceo_name' => '' , 'ceo_picture' => '' , 'email' => '' , 'address' => '' , 'phone' => '' , 'short_desc' => '' , ] ) ; } }
Run the database seeds.
Run the database seeds .