database/seeds/TagsTableSeeder.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/tags.json')));
        $data = json_decode($json,true);
        foreach ($data as $obj) {
            Tag::create($obj);
        }
    }
public function run ( ) { $ json = File :: get ( ( base_path ( 'database/data/tags.json' ) ) ) ; $ data = json_decode ( $ json , true ) ; foreach ( $ data as $ obj ) { Tag :: create ( $ obj ) ; } }
Run the database seeds.
Run the database seeds .