src/Support/Illuminate/Database/SeederTrait.php
protected function cleanDatabase(array $tables)
    {
        DB::statement($this->getForeignKeyCheck(false));
        foreach ($tables as $table) {
            if (Schema::hasTable($table)) {
                DB::table($table)->truncate();
            }
        }
        DB::statement($this->getForeignKeyCheck(true));
    }
protected function cleanDatabase(array $tables)
    {
        DB::statement($this->getForeignKeyCheck(false));
        foreach ($tables as $table) {
            if (Schema::hasTable($table)) {
                DB::table($table)->truncate();
            }
        }
        DB::statement($this->getForeignKeyCheck(true));
    }
protected function cleanDatabase ( array $ tables ) { DB :: statement ( $ this -> getForeignKeyCheck ( false ) ) ; foreach ( $ tables as $ table ) { if ( Schema :: hasTable ( $ table ) ) { DB :: table ( $ table ) -> truncate ( ) ; } } DB :: statement ( $ this -> getForeignKeyCheck ( true ) ) ; }
cleaning process of tables
@return [type] [description]
cleaning process of tables