1: <?php class ProductsSeeder extends Seeder {
2:
3: private function __addProduct($name, $model, $size) {
4: $product = array('name'=>$name, 'model'=>$model, 'size'=>$size);
5: $productId = DB::table('products')->insertGetId($product);
6: // Log::write('info', $label.' menu created');
7: return $productId;
8: }
9:
10: public function run()
11: {
12:
13: DB::table('products')->delete();
14:
15: //$this->__addProduct('name', 'model', 'size');
16: }
17:
18:
19: }