1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 22:34:05 +00:00

Delete todo comment ($modelsExcludedFromDiscovery added)

This commit is contained in:
lukinovec 2024-01-25 14:37:11 +01:00
parent 692860eb6f
commit 105c866aef

View file

@ -29,7 +29,6 @@ trait DealsWithModels
$modelFiles = Finder::create()->files()->name('*.php')->in(config('tenancy.rls.model_directories'));
// todo1 Add array property for excluding specific models
return array_filter(array_map(function (SplFileInfo $file) {
$fileContents = str($file->getContents());
$class = $fileContents->after('class ')->before("\n")->explode(' ')->first();