mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:04:03 +00:00
Add todo (exclude specific models)
This commit is contained in:
parent
9055034451
commit
a664860d63
1 changed files with 1 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ trait DealsWithModels
|
||||||
|
|
||||||
$modelFiles = Finder::create()->files()->name('*.php')->in(config('tenancy.rls.model_directories'));
|
$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) {
|
return array_filter(array_map(function (SplFileInfo $file) {
|
||||||
$fileContents = str($file->getContents());
|
$fileContents = str($file->getContents());
|
||||||
$class = $fileContents->after('class ')->before("\n")->explode(' ')->first();
|
$class = $fileContents->after('class ')->before("\n")->explode(' ')->first();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue