Skip to content

Instantly share code, notes, and snippets.

@RejownAhmed
Forked from yajra/console.php
Created September 11, 2023 08:46
Show Gist options
  • Save RejownAhmed/5c33c5703ec2b168fe135b14ab6f278d to your computer and use it in GitHub Desktop.
Save RejownAhmed/5c33c5703ec2b168fe135b14ab6f278d to your computer and use it in GitHub Desktop.
Disable Laravel migrate:fresh command
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