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

A helper method for deriving the class manually in a package #99

Open
GoodM4ven opened this issue May 21, 2024 · 1 comment
Open

A helper method for deriving the class manually in a package #99

GoodM4ven opened this issue May 21, 2024 · 1 comment

Comments

@GoodM4ven
Copy link
Member

GoodM4ven commented May 21, 2024

// TODO abstract
$namespace = $serviceProvider->getPackageNamespace();
$className = str($path)->after('seeders/')->before('.php')->value();
$className = "{$namespace}\\Database\\Seeders\\$className";

And maybe adding the requiring logic too? on CraftyPackage facade perhaps

@GoodM4ven GoodM4ven added this to Crafty May 21, 2024
@GoodM4ven GoodM4ven converted this from a draft issue May 21, 2024
@GoodM4ven GoodM4ven changed the title A helper method for deriving the class in a package A helper method for deriving the class manually in a package May 21, 2024
@GoodM4ven GoodM4ven self-assigned this May 21, 2024
@GoodM4ven GoodM4ven moved this from In Progress to Todo in Crafty May 21, 2024
@GoodM4ven GoodM4ven removed their assignment May 21, 2024
@GoodM4ven
Copy link
Member Author

maybe it's not worth it just yet

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

No branches or pull requests

1 participant