We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1477f17 commit cc4abddCopy full SHA for cc4abdd
app/Console/Commands/MeetingsList.php
@@ -40,7 +40,7 @@ public function handle()
40
//
41
$companyId = $this->argument('companyId');
42
if (is_numeric($companyId))
43
- print_r(Company::findOrFail($companyId)->with(self::withFilter())->get()->toArray());
+ print_r(Company::with(self::withFilter())->findOrFail($companyId)->toArray());
44
else
45
print_r(Company::with(self::withFilter())->select('id')->get()->toArray());
46
}
0 commit comments