Edit File: CouponTableSeeder.php
<?php namespace Database\Seeders; use App\Models\Coupon; use Illuminate\Database\Seeder; use DB; class CouponTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('coupons')->insert([ [ 'code' => 'QWERT' , 'value' => '10', 'num_to_use' => 100, 'num_used' => 40, 'start_at' => \Carbon\Carbon::now()->addDays(10), 'end_at' => \Carbon\Carbon::now()->addDays(10), ] , [ 'code' => 'JAKA' , 'value' => '13', 'num_to_use' => 100, 'num_used' => 40, 'start_at' => \Carbon\Carbon::now()->addDays(10), 'end_at' => \Carbon\Carbon::now()->addDays(10), ] ]); } }
Back to File Manager