public function run() { $status = [['name' => 'Order Initiated', 'created_at' => current_time(), 'updated_at' => current_time()], ['name' => 'Confirmation Pending', 'created_at' => current_time(), 'updated_at' => current_time()], ['name' => 'Order Confirmed', 'created_at' => current_time(), 'updated_at' => current_time()], ['name' => 'Pending Process', 'created_at' => current_time(), 'updated_at' => current_time()], ['name' => 'Process Progressing', 'created_at' => current_time(), 'updated_at' => current_time()], ['name' => 'Order Completed', 'created_at' => current_time(), 'updated_at' => current_time()]]; \App\Status::truncate(); \App\Status::insert($status); }
public function run() { DB::table('status')->delete(); $status = [['id' => 1, 'name' => 'Aberto', 'icon' => 'img/status/1.png'], ['id' => 2, 'name' => 'Resolvido', 'icon' => 'img/status/2.png'], ['id' => 3, 'name' => 'Cancelado', 'icon' => 'img/status/3.png']]; Status::insert($status); }