public function seeRecord($table, $attributes = [])
    {
        if (class_exists($table)) {
            if (!$this->findModel($table, $attributes)) {
                $this->fail("Could not find $table with " . json_encode($attributes));
            }
        } elseif (!$this->findRecord($table, $attributes)) {
            $this->fail("Could not find matching record in table '$table'");
        }
    }
public function seeRecord($table, $attributes = [])
    {
        if (class_exists($table)) {
            if (!$this->findModel($table, $attributes)) {
                $this->fail("Could not find $table with " . json_encode($attributes));
            }
        } elseif (!$this->findRecord($table, $attributes)) {
            $this->fail("Could not find matching record in table '$table'");
        }
    }
public function seeRecord ( $ table , $ attributes = [ ] ) { if ( class_exists ( $ table ) ) { if ( ! $ this -> findModel ( $ table , $ attributes ) ) { $ this -> fail ( "Could not find $table with " . json_encode ( $ attributes ) ) ; } } elseif ( ! $ this -> findRecord ( $ table , $ attributes ) ) { $ this -> fail ( "Could not find matching record in table '$table'" ) ; } }
Checks that record exists in database.
You can pass the name of a database table or the class name of an Eloquent model as the first argument.

``` php
<?php
$I->seeRecord('users', array('name' => 'davert'));
$I->seeRecord('App\User', array('name' => 'davert'));
?>
```

@param string $table
@param array $attributes
@part orm
Checks that record exists in database . You can pass the name of a database table or the class name of an Eloquent model as the first argument .