Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Oct 6, 2023
1 parent 6735778 commit 3c68c46
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ protected function prepareWorkbenchDirectories(Filesystem $filesystem, string $w
return "{$workbenchWorkingPath}/{$directory}";
})
);

$this->callSilently('make:seeder', [
'name' => 'DatabaseSeeder',
'--preset' => 'workbench',
]);
}

/**
Expand Down
7 changes: 6 additions & 1 deletion src/Console/stubs/testbench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ providers: []
migrations:
- workbench/database/migrations

seeders: []
seeders:
- Workbench\Database\Seeders\DatabaseSeeder

workbench:
start: '/'
install: true
welcome: true
discovers:
web: false
api: false
commands: false
build: []
assets: []
sync: []
Empty file.
17 changes: 17 additions & 0 deletions workbench/database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Workbench\Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
//
}
}

0 comments on commit 3c68c46

Please sign in to comment.