Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mahmoudmohamedramadan/custom-fresh

A Laravel package to specify the tables that you do not want to drop while refreshing the database.
https://github.com/mahmoudmohamedramadan/custom-fresh

composer custom-fresh custom-migrate laravel mariadb migrations mssql mysql oracle pdo pgsql php postgresql queryobject sql sqlite sqlserver

Last synced: 3 months ago
JSON representation

A Laravel package to specify the tables that you do not want to drop while refreshing the database.

Awesome Lists containing this project

README

        

# Custom Fresh

![Custom Fresh](https://raw.githubusercontent.com/mahmoudmohamedramadan/custom-fresh/refs/heads/main/assets/custom-fresh.png "Custom Fresh")

![License](https://img.shields.io/packagist/l/ramadan/custom-fresh "License")
![Latest Version on Packagist](https://img.shields.io/packagist/v/ramadan/custom-fresh "Latest Version on Packagist")
![Total Downloads](https://img.shields.io/packagist/dt/ramadan/custom-fresh "Total Downloads")

- - -

Custom Fresh allows fine-grain control of migrations inside your Laravel project, where you can choose which tables will not be dropped while refreshing the database.

- [Installation](#installation)
- [Usage](#usage)
- [Refreshing migrations](#refreshing-migrations)
- [Example](#example)
- [Credits](#credits)
- [Support me](#support-me)

## Installation

Install the package by using [Composer](https://getcomposer.org/):

```SHELL
composer require ramadan/custom-fresh
```

## Usage

After installing the package, you will see a new `fresh:custom` command.

### Refreshing migrations

You can exclude specific tables while refreshing the database inside your project:

```SHELL
php artisan fresh:custom posts,foo,bar
```

### Example

![Command Example](https://raw.githubusercontent.com/mahmoudmohamedramadan/custom-fresh/refs/heads/main/assets/command-example.png "Command Example")

## Credits

- [Mahmoud Ramadan](https://github.com/mahmoudmohamedramadan)
- [Contributors](https://github.com/mahmoudmohamedramadan/custom-fresh/graphs/contributors)

## Support me

- [PayPal](https://www.paypal.com/paypalme/mmramadan496)

## License

The MIT License (MIT).