diff --git a/app/Support/Binder/CategoryList.php b/app/Support/Binder/CategoryList.php new file mode 100644 index 0000000000..ff787b85b5 --- /dev/null +++ b/app/Support/Binder/CategoryList.php @@ -0,0 +1,51 @@ +where('user_id', Auth::user()->id) + ->get(); + + // add empty budget if applicable. + if (in_array('0', $ids)) { + $object->push(new Category); + } + + if ($object->count() > 0) { + return $object; + } + } + throw new NotFoundHttpException; + } +} \ No newline at end of file