src/Console/FreshCommand.php
/**
     * Truncate all of the database tables.
     *
     * @param  string  $database
     * @return void
     */
Truncate all of the database tables.
@param  string  $database
@return void
Truncate all of the database tables . @param string $database @return void
protected function truncateAllTables($database)
    {
        $tables = $this->laravel['db']->connection($database)
                                      ->getDoctrineSchemaManager()
                                      ->listTableNames();
        foreach ($tables as $table) {
            $this->laravel['db']->connection($database)
                                ->table($table)
                                ->truncate();
        }
    }
protected function truncateAllTables ( $ database ) { $ tables = $ this -> laravel [ 'db' ] -> connection ( $ database ) -> getDoctrineSchemaManager ( ) -> listTableNames ( ) ; foreach ( $ tables as $ table ) { $ this -> laravel [ 'db' ] -> connection ( $ database ) -> table ( $ table ) -> truncate ( ) ; } }
Truncate all of the database tables.
Truncate all of the database tables .