Skip to content

Conversation

@pirs1337
Copy link
Contributor

refs: #93

@pirs1337 pirs1337 self-assigned this Nov 25, 2024
return view($stubPath)->with($data)->render();
}

protected function checkStubExists(string $stub): bool
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
protected function checkStubExists(string $stub): bool
protected function isStubExists(string $stubName): bool


public function generate(): void
{
$entitySeeder = (version_compare(app()->version(), '8', '>=')) ? 'seeder' : 'legacy_seeder';
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's remove legacy seeder check

Comment on lines 70 to 72
config([
'entity-generator.stubs.seeder' => 'incorrect_stub',
]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
config([
'entity-generator.stubs.seeder' => 'incorrect_stub',
]);
config(['entity-generator.stubs.seeder' => 'incorrect_stub']);

…-invalid-stubs

# Conflicts:
#	src/Generators/EntityGenerator.php
#	src/Generators/FactoryGenerator.php
@pirs1337 pirs1337 assigned DenTray and unassigned pirs1337 Dec 2, 2024
@DenTray DenTray merged commit d593404 into master Dec 6, 2024
1 check passed
@DenTray DenTray deleted the skip-generation-for-invalid-stubs branch December 6, 2024 08:33
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.

3 participants