Created
April 22, 2022 02:12
-
-
Save yajra/d0a0dbe2dd1c71aacfd609ec82963d48 to your computer and use it in GitHub Desktop.
Disable Laravel migrate:fresh command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Artisan::command('migrate:fresh', function () { | |
/** @var \Illuminate\Console\Command $cmd */ | |
$cmd = $this; | |
$cmd->ask("Are you sure you want to resign?", "Yes"); | |
$cmd->comment( | |
<<<'TXT' | |
.~))>> | |
.~)>> | |
.~))))>>> | |
.~))>> ___ | |
.~))>>)))>> .-~))>> | |
.~)))))>> .-~))>>)> | |
.~)))>>))))>> .-~)>>)> | |
) .~))>>))))>> .-~)))))>>)> | |
( )@@*) //)>)))))) .-~))))>>)> | |
).@(@@ //))>>))) .-~))>>)))))>>)> | |
(( @.@). //))))) .-~)>>)))))>>)> | |
)) )@@*.@@ ) //)>))) //))))))>>))))>>)> | |
(( ((@@@.@@ |/))))) //)))))>>)))>>)> | |
)) @@*. )@@ ) (\_(\-\b |))>)) //)))>>)))))))>>)> | |
(( @@@(.@(@ . _/`-` ~|b |>))) //)>>)))))))>>)> | |
)* @@@ )@* (@) (@) /\b|))) //))))))>>))))>> | |
(( @. )@( @ . _/ / / \b)) //))>>)))))>>>_._ | |
)@@ (@@*)@@. (6///6)- / ^ \b)//))))))>>)))>> ~~-. | |
( @jgs@@. @@@.*@_ VvvvvV// ^ \b/)>>))))>> _. `bb | |
((@@ @@@*.(@@ . - | o |' \ ( ^ \b)))>> .' b`, | |
((@@).*@@ )@ ) \^^^/ (( ^ ~)_ \ / b `, | |
(@@. (@@ ). `-' ((( ^ `\ \ \ \ \| b `. | |
(*.@* / (((( \| | | \ . b `. | |
/ / ((((( \ \ / _.-~\ Y, b ; | |
/ / / (((((( \ \.-~ _.`" _.-~`, b ; | |
/ / `(((((() ) (((((~ `, b ; | |
_/ _/ `"""/ /' ; b ; | |
_.-~_.-~ / /' _.'~bb _.' | |
((((~~ / /' _.'~bb.--~ | |
(((( __.-~bb.-~ | |
.' b .~~ | |
:bb ,' | |
~~~~ | |
TXT | |
); | |
})->purpose('Disable fresh command'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for publicly sharing this. You helped a lot with such of a great humor. 👍