Laravel - Database - Assert Database Has

Assert that a table in the database contains records matching the given key / value query constraints:

    
    $this->assertDatabaseHas('users', [
        'email' => '[email protected]',
    ]);