| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function run() |
||
| 12 | { |
||
| 13 | $taxRate = new TaxRate; |
||
| 14 | |||
| 15 | DB::table($taxRate->getTable())->delete(); |
||
| 16 | $shop = Shop::where('title', '=', 'hideyo')->first(); |
||
| 17 | |||
| 18 | $taxRate->title = '21%'; |
||
| 19 | $taxRate->rate = '21'; |
||
| 20 | $taxRate->shop_id = $shop->id; |
||
| 21 | $taxRate->save(); |
||
| 22 | |||
| 23 | $taxRate2 = new TaxRate; |
||
| 24 | $taxRate2->title = '6%'; |
||
| 25 | $taxRate2->rate = '6'; |
||
| 26 | $taxRate2->shop_id = $shop->id; |
||
| 27 | $taxRate2->save(); |
||
| 28 | } |
||
| 30 |