mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:34:02 +00:00
Add MigrateFreshOverride
This commit is contained in:
parent
6be44ceddc
commit
b2fe66b7d9
1 changed files with 16 additions and 0 deletions
16
src/Commands/MigrateFreshOverride.php
Normal file
16
src/Commands/MigrateFreshOverride.php
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Stancl\Tenancy\Commands;
|
||||||
|
|
||||||
|
use Illuminate\Database\Console\Migrations\FreshCommand;
|
||||||
|
|
||||||
|
class MigrateFreshOverride extends FreshCommand
|
||||||
|
{
|
||||||
|
public function handle()
|
||||||
|
{
|
||||||
|
dd('overriden');
|
||||||
|
tenancy()->model()::all()->each->delete();
|
||||||
|
|
||||||
|
return parent::handle();
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue