database/seeders/ConsumableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
      DB::table('consumables')->insert([
        'name' => 'arrows',
        'category' => 'Ammunition'
      ]);
      DB::table('consumables')->insert([
        'name' => 'blowgun needles',
        'category' => 'Ammunition'
      ]);
      DB::table('consumables')->insert([
        'name' => 'crossbow bolts',
        'category' => 'Ammunition'
      ]);
      DB::table('consumables')->insert([
        'name' => 'sling bullets',
        'category' => 'Ammunition'
      ]);
      DB::table('consumables')->insert([
        'name' => 'ball bearings',
        'category' => 'Consumable gear'
      ]);
      DB::table('consumables')->insert([
        'name' => 'caltrops',
        'category' => 'Consumable gear'
      ]);
      DB::table('consumables')->insert([
        'name' => 'chain',
        'category' => 'Consumable gear'
      ]);
      DB::table('consumables')->insert([
        'name' => 'spikes, iron',
        'category' => 'Consumable gear'
      ]);
      DB::table('consumables')->insert([
        'name' => 'potion of healing',
        'category' => 'potion of healing'
      ]);
      DB::table('consumables')->insert([
        'name' => 'rations',
        'category' => 'Food'
      ]);
    }
public function run ( ) { DB :: table ( 'consumables' ) -> insert ( [ 'name' => 'arrows' , 'category' => 'Ammunition' ] ) ; DB :: table ( 'consumables' ) -> insert ( [ 'name' => 'blowgun needles' , 'category' => 'Ammunition' ] ) ; DB :: table ( 'consumables' ) -> insert ( [ 'name' => 'crossbow bolts' , 'category' => 'Ammunition' ] ) ; DB :: table ( 'consumables' ) -> insert ( [ 'name' => 'sling bullets' , 'category' => 'Ammunition' ] ) ; DB :: table ( 'consumables' ) -> insert ( [ 'name' => 'ball bearings' , 'category' => 'Consumable gear' ] ) ; DB :: table ( 'consumables' ) -> insert ( [ 'name' => 'caltrops' , 'category' => 'Consumable gear' ] ) ; DB :: table ( 'consumables' ) -> insert ( [ 'name' => 'chain' , 'category' => 'Consumable gear' ] ) ; DB :: table ( 'consumables' ) -> insert ( [ 'name' => 'spikes, iron' , 'category' => 'Consumable gear' ] ) ; DB :: table ( 'consumables' ) -> insert ( [ 'name' => 'potion of healing' , 'category' => 'potion of healing' ] ) ; DB :: table ( 'consumables' ) -> insert ( [ 'name' => 'rations' , 'category' => 'Food' ] ) ; }
Run the database seeds.
Run the database seeds .
//consumable item test