Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(console): Add command to create new seeder #20

Merged
merged 2 commits into from
Jan 31, 2025

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