diff --git a/app/Model/HomeModel.php b/app/Model/HomeModel.php index 395d722..330a15c 100644 --- a/app/Model/HomeModel.php +++ b/app/Model/HomeModel.php @@ -23,6 +23,8 @@ use Nischcodes\Shiftcalc\MVC\BaseModel; class HomeModel implements BaseModel { + protected $repository = []; + // implement the init function public function init() { echo "HomeModel init"; @@ -30,8 +32,11 @@ class HomeModel implements BaseModel { // implement the getAll function public function getAll() { - return []; + return $this->repository; } - public function get($index){} + // implement the get function + public function get($index){ + return $this->repository[$index]; + } } \ No newline at end of file