2017 © Pedro Peláez
 

library dbtruncate

A laravel command that helps truncate mysql database tables

image

kreshnik/dbtruncate

A laravel command that helps truncate mysql database tables

  • Sunday, October 15, 2017
  • by Kreshnik
  • Repository
  • 1 Watchers
  • 6 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel DBTruncate Command

Automatically truncates all mysql tables for you. Works also with tables that use relationships, by using the FOREIGN_KEY_CHECKS system variable., (*1)

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require kreshnik/dbtruncate, (*2)

Laravel 5.5

"require-dev": {
    "kreshnik/dbtruncate": "dev-master"
}

Laravel 5.4

"require-dev": {
    "kreshnik/dbtruncate": "5.4.x-dev"
}

Next, update Composer from the Terminal:, (*3)

composer update

Once this operation completes, the final step is to add the service provider. Open config/app.php, and add a new item to the providers array., (*4)

Kreshnik\Dbtruncate\DbtruncateServiceProvider::class

That's it! You're all set to go. Run the artisan command from the Terminal to see the new db:truncate command., (*5)

php artisan

Commands

db:truncate will prompt you to confirm the truncation process, (*6)

Options

db:truncate --tables=table1,table2 In case you want to truncate specific tables. You can specify a list of tables divided with a comma., (*7)

db:truncate --exclude=table1,table2 A list of tables that will be excluded from the truncation process. The tables have to be divded with a comma., (*8)

The Versions

15/10 2017

5.4.x-dev

5.4.9999999.9999999-dev

A laravel command that helps truncate mysql database tables

  Sources   Download

MIT License

The Requires

 

by Kreshnik Hasanaj

laravel db truncate tables truncate

15/10 2017

dev-master

9999999-dev

A laravel command that helps truncate mysql database tables

  Sources   Download

MIT License

The Requires

 

by Kreshnik Hasanaj

laravel db truncate tables truncate

01/02 2017

5.3.x-dev

5.3.9999999.9999999-dev

A laravel command that helps truncate mysql database tables

  Sources   Download

MIT License

The Requires

 

by Kreshnik Hasanaj

laravel db truncate tables truncate