feat: ✨ add migration to seed sticky elements
This commit is contained in:
parent
5e9e542d87
commit
906e81cda7
1 changed files with 26 additions and 0 deletions
26
database/migrations/2026_03_25_150536_stickies_seeder.php
Normal file
26
database/migrations/2026_03_25_150536_stickies_seeder.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
use Database\Seeders\Mandatory\StickySeeder;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Artisan::call('db:seed', [
|
||||
'class' => StickySeeder::class
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue