Skip to content

Commit cc4abdd

Browse files
committed
minor fix
1 parent 1477f17 commit cc4abdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Console/Commands/MeetingsList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function handle()
4040
//
4141
$companyId = $this->argument('companyId');
4242
if (is_numeric($companyId))
43-
print_r(Company::findOrFail($companyId)->with(self::withFilter())->get()->toArray());
43+
print_r(Company::with(self::withFilter())->findOrFail($companyId)->toArray());
4444
else
4545
print_r(Company::with(self::withFilter())->select('id')->get()->toArray());
4646
}

0 commit comments

Comments
 (0)