database/seeders/CommentSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $comment_1  = \App\Models\Comment::create([
            "content"=>"test comment" ,
            "article_id"=>"1" ,
        ]);
        $comment_2  = \App\Models\Comment::create([
            "content"=>"test comment" ,
            "article_id"=>"1" ,
        ]);
    }
public function run ( ) { $ comment_1 = \ App \ Models \ Comment :: create ( [ " content " => " test comment " , " article_id " => " 1 " , ] ) ; $ comment_2 = \ App \ Models \ Comment :: create ( [ " content " => " test comment " , " article_id " => " 1 " , ] ) ; }
Run the database seeds.
Run the database seeds .
//