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:
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'));
|
||||
|
||||
// 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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue