database/seeds/SkillsTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
        {
            $json = File::get((base_path('database/data/skills.json')));
            $data = json_decode($json,true);
            foreach ($data as $obj) {
                Skill::create($obj);
            }
        }
public function run ( ) { $ json = File :: get ( ( base_path ( 'database/data/skills.json' ) ) ) ; $ data = json_decode ( $ json , true ) ; foreach ( $ data as $ obj ) { Skill :: create ( $ obj ) ; } }
Run the database seeds.
Run the database seeds .