New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

yadakhov/laradump

A mysqldump wrapper for laravel. Dump your table schemas and data into files.
26,617 25

Larablocks Analysis

yadakhov/laradump works with any PHP project: the latest release (v2.3.4, Aug 9, 2023) doesn't depend on Laravel.

Laravel 5, 6 and 7 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Aug 9, 2023)
  • 1,061 downloads a month (needs 10,000)
  • 25 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Aug 9, 2023.
  • No releases in the last 12 months.
  • First released: Aug 2, 2016.
  • Monthly downloads: 1,061, down 17% from six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require yadakhov/laradump
Latest Version:v2.3.4
PHP:^7.2|^8.0
Older releases:5 · 6 · 7
License:MIT
Last Updated:Aug 9, 2023
Links: GitHub  ·  Packagist
Maintainer: yadakhov

Laradump

A wrapper package to run mysqldump from laravel console commands.

Installation

Install from packagist

composer require yadakhov/laradump

Add to providers array in config/app.php

    'providers' => [
        // ...others

        Yadakhov\Laradump\LaradumpServiceProvider::class,
    ],

Create configuration file config/laradump.php.

php artisan vendor:publish

Laradump commands

Once the LaradumpServiceProvider is registered, the commands will show up when you do a php artisan.

php artisan
 ...
 laradump
  laradump:drop-tables        Drop tables that do not have backup files.
  laradump:list               List all tables to perform individually.
  laradump:mysqldump          Perform a MySQL dump on every tables.
  laradump:restore            Perform a restore on every tables.
  laradump:save-to-s3         Save laradump folder to s3
  laradump:sync-from-s3       Sync laradump folder from s3
 ...

Doing a mysqldump

php artisan laradump:mysqldump

Will perform a mysqldump of each table in your database and store it in the storage/dumps folder.

Doing a mysql restore

php artisan laradump:restore

Will load all sql files in /storage/dumps.

Perform backup and restore on individual table

php artisan laradump:mysqldump  --table=user
php artisan laradump:restore  --table=user

# To see a list of possible tables
php artisan laradump:list 

Ensure the storage folder is writable.

# Create the tables for storing the files
mkdir storage/laradump/tables
mkdir storage/laradump/data

sudo chmod o+w -R storage

Add ignore the dump files in git

# add line to your .gitignore
/storage/laradump

Alternatives to yadakhov/laradump

ahmednour/laravel-stream-backup

Streaming database backup for Laravel: dump → compress → S3 multipart upload wit...

1,353 6
chr15k/laravel-schema-audit

Performs static analysis of your Laravel migrations to detect schema inconsisten...

1,022 8
awssat/laravel-sync-migration

Laravel tool helps to sync migrations without refreshing the database

24,042 108

Version History

Version Released PHP Laravel License
v2.3.4 ^7.2|^8.0 MIT
v2.3.3 ^7.2|^8.0 MIT
v2.3.2 ^7.2|^8.0 MIT
v2.3.1 ^7.2|^8.0 MIT
v2.3.0 ^7.2|^8.0 MIT