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

Add todo (exclude specific models)

This commit is contained in:
lukinovec 2023-07-18 08:02:05 +02:00
parent 9055034451
commit a664860d63

View file

@ -27,6 +27,7 @@ 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();