database/seeders/ArticlesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('articles') -> insert([
            [
                'title' => 'React',
                'body' => 'hoge...'
            ],
            [
                'title' => 'Redux',
                'body' => 'fuga...'
            ]
        ]);
    }
public function run ( ) { DB :: table ( 'articles' ) -> insert ( [ [ 'title' => 'React' , 'body' => 'hoge...' ] , [ 'title' => 'Redux' , 'body' => 'fuga...' ] ] ) ; }
Run the database seeds.
Run the database seeds .
//