{"repo":"mahmoudmohamedramadan/custom-fresh","free":true,"listed":false,"github":"https://github.com/mahmoudmohamedramadan/custom-fresh","clone":"git clone https://github.com/mahmoudmohamedramadan/custom-fresh.git","description":"A Laravel package to specify the tables that you do not want to drop while refreshing the database.","language":"PHP","stars":61,"topics":["custom-fresh","custom-migrate","laravel","migrations","php","composer","mariadb","mssql","mysql","oracle"],"license":null,"category":"databases-storage","readme_excerpt":"Custom Fresh - - - Custom Fresh offers fine-grained control over migrations within your Laravel project, enabling you to select which tables will not be dropped when refreshing the database. [!TIP] Always consider upgrading the package to the latest version, which is the most stable release. - Installation - Usage - Refreshing migrations - Glob patterns - Multiple connections - Dry run - Configuration - Events - Example - Credits - Support me Installation Install the package by using Composer: (Optional) publish the config file: Usage After installing the package, you will see a new fresh:custom command. [!NOTE] Since v1.2.0 , the package scans your migration files more accurately, including nested folders, custom --path locations, and package migration paths registered through Laravel. Refreshing migrations You can exclude specific tables while refreshing the database inside your project: The same can be expressed with the --keep option (which can be combined with the positional argument): [!IMPORTANT] Do not forget always to use the -h of the command to check out all supported options. Glob patterns Anything containing , ? , or […] is expanded with fnmatch against the database tables, so you can preserve whole groups at once: Multiple connections Pass --database= to target a non-default connection. The connection is also forwarded to the migrate command: Dry run Use --explain to preview exactly what would happen without dropping a single table: It prints the resolved connec","default_branch":null,"files":null,"tree":[],"storefront":"/r/mahmoudmohamedramadan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mahmoudmohamedramadan/custom-fresh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}