database/seeds/CommentSeed.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        \App\Model\Comment::create([
            'content'=>11111,
            'comment_user_id'=>1,
            'reply_user_id'=>1,
            'information_id'=>1,
        ]);
        \App\Model\Comment::create([
            'content'=>22222,
            'comment_user_id'=>1,
            'reply_user_id'=>1,
            'information_id'=>1,
        ]);
        \App\Model\Comment::create([
            'content'=>33333,
            'comment_user_id'=>1,
            'reply_user_id'=>1,
            'information_id'=>1,
        ]);
        \App\Model\Comment::create([
            'content'=>44444,
            'comment_user_id'=>1,
            'reply_user_id'=>1,
            'information_id'=>1,
        ]);
        factory(\App\Model\Comment::class, 20)->create();
    }
public function run ( ) { \ App \ Model \ Comment :: create ( [ 'content' => 11111 , 'comment_user_id' => 1 , 'reply_user_id' => 1 , 'information_id' => 1 , ] ) ; \ App \ Model \ Comment :: create ( [ 'content' => 22222 , 'comment_user_id' => 1 , 'reply_user_id' => 1 , 'information_id' => 1 , ] ) ; \ App \ Model \ Comment :: create ( [ 'content' => 33333 , 'comment_user_id' => 1 , 'reply_user_id' => 1 , 'information_id' => 1 , ] ) ; \ App \ Model \ Comment :: create ( [ 'content' => 44444 , 'comment_user_id' => 1 , 'reply_user_id' => 1 , 'information_id' => 1 , ] ) ; factory ( \ App \ Model \ Comment :: class , 20 ) -> create ( ) ; }
Run the database seeds.
Run the database seeds .