VPremiss / Crafty

Some essentials to rely on for TALL stack development.
MIT License
1 stars 0 forks source link

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

Open GoodM4ven opened 4 months ago

GoodM4ven commented 4 months ago
// 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 commented 4 months ago

maybe it's not worth it just yet