Viewing File: /home/ubuntu/shop-website-base/database/seeders/TwilioSeeder.php

<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class TwilioSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
        if(\Schema::hasTable('settings')) {

	    	\DB::table('settings')->insert([
                [
					'key' => 'TWILIO_AUTH_SID',
					'value'=>''

				],
				[
					'key' => 'TWILIO_AUTH_TOKEN',
					'value'=>''
				],
				[
					'key' => 'TWILIO_WHATSAPP_FROM',
					'value'=>''
                ],
                [
                    'key' => 'is_whatsapp_enabled',
                    'value'=>''
                ]

            ]);
        }
    }
}
Back to Directory File Manager