1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 16:54:05 +00:00

Add MigrateFreshOverride

This commit is contained in:
lukinovec 2022-10-14 10:57:51 +02:00
parent 6be44ceddc
commit b2fe66b7d9

View 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();
}
}