Skip to content

Conversation

@ibnusyawall
Copy link
Contributor

This PR introduces the artisan command to create a new seeder class file for the specified module.

How does it work?

$ php artisan modular:make-seeder ModuleName SeederName

The new seeder file will be created in the modules/ModuleName/Database/Seeders/ directory.

The example seeder code is as follows:

<?php

namespace Modules\User\Database\Seeders;

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

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

Copy link
Collaborator

@daniel-cintra daniel-cintra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Ibnu syawal!

Thank you very much for your time and effort on this Pull Request!

@daniel-cintra daniel-cintra merged commit ec50ba4 into ModularThink:main Jan 31, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants