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

Passing the FQCN to make:seeder command produces unexpected output #40338

Closed
ManojKiranA opened this issue Jan 11, 2022 · 3 comments
Closed

Passing the FQCN to make:seeder command produces unexpected output #40338

ManojKiranA opened this issue Jan 11, 2022 · 3 comments
Labels

Comments

@ManojKiranA
Copy link
Contributor

  • Laravel Version: 8.78.1
  • PHP Version: 8.1.1
  • Database Driver & Version:

Description:

when I run a seeder command with additional path it produces the unexpected output.

Steps To Reproduce:

In a fresh laravel app run the following command

php artisan make:seed PathOne/PathTwo/SeederClass

This will create a file in database_path('seeders/PathOne/PathTwo') with following content

<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class PathOne/PathTwo/SeederClass extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
    }
}
@driesvints
Copy link
Member

I can reproduce this. I'll see what's up.

@driesvints driesvints added the bug label Jan 11, 2022
@driesvints
Copy link
Member

It seems there's no support for this yet. Only for single classes. If you wish to have namespace support as well we're welcoming PR's. I might take a look at this myself eventually but for now we're welcoming PR's. Thanks

@driesvints
Copy link
Member

This got added here btw: #41534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants