Basic tenant structure
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Installer\DevelopmentDataSeeder;
|
||||
use App\Installer\ProductionData;
|
||||
use App\Installer\ProductionDataSeeder;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
@@ -15,11 +17,12 @@ class DatabaseSeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
// User::factory(10)->create();
|
||||
$productionSeeeder = new ProductionDataSeeder();
|
||||
$productionSeeeder->execute();
|
||||
|
||||
User::factory()->create([
|
||||
'name' => 'Test User',
|
||||
'email' => 'test@example.com',
|
||||
]);
|
||||
if (str_ends_with(env('APP_URL'), 'mareike.local')) {
|
||||
$deveopmentDataSeeder = new DevelopmentDataSeeder();
|
||||
$deveopmentDataSeeder->execute();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user