Ajvanho's avatar
Level 14

Test DB::table

How to test DB:table, create factory, without model ?

$post= DB::table('posts')->insert([
            'txt' => 'htyehytyteh',
            'code' => 200,
        ]);
0 likes
2 replies

Please or to participate in this conversation.