lasthourcloud/database/seeders/LocalPersistentVolumeSeeder.php
2023-04-03 13:37:53 +02:00

24 lines
484 B
PHP

<?php
namespace Database\Seeders;
use App\Models\Application;
use App\Models\LocalPersistentVolume;
use Illuminate\Database\Seeder;
class LocalPersistentVolumeSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
LocalPersistentVolume::create([
'name' => 'test-pv',
'mount_path' => '/data',
'resource_id' => 1,
'resource_type' => Application::class,
]);
}
}