src/Commands/MigrationCommand.php
protected function createSeeder($data)
    {
        $seederFile = base_path('/database/seeds') . '/LaravelShopSeeder.php';

        $output = $this->laravel->view->make('laravel-shop::generators.seeder')->with($data)->render();

        if (!file_exists($seederFile) && $fs = fopen($seederFile, 'x')) {
            fwrite($fs, $output);
            fclose($fs);
            return true;
        }

        return false;
    }
protected function createSeeder($data)
    {
        $seederFile = base_path('/database/seeds') . '/LaravelShopSeeder.php';

        $output = $this->laravel->view->make('laravel-shop::generators.seeder')->with($data)->render();

        if (!file_exists($seederFile) && $fs = fopen($seederFile, 'x')) {
            fwrite($fs, $output);
            fclose($fs);
            return true;
        }

        return false;
    }
Create the seeder.

@param array $data Data with table names.

@return bool