Example #1
0
 /**
  *
  * @param null $filter
  * @return array
  */
 public function index($filter = null)
 {
     //        if ($filter) {
     //            $entries = Entry::join('restoration_types', 'info.restoration_type', '=', 'restoration_types.id')
     //                ->whereIn('last_name', $filter)
     //                ->orderBy('last_name', 'asc');
     //        }
     //        else {
     //            $entries = Entry::join('restoration_types', 'info.restoration_type', '=', 'restoration_types.id')
     //                ->orderBy('last_name', 'asc');
     //        }
     $entries = $this->entriesRepository->getEntries();
     return $entries;
 }
Example #2
0
 public function home()
 {
     //        return $this->entriesRepository->getEntries();
     JavaScript::put(['env' => app()->env, 'restorationTypes' => RestorationType::get(), 'folders' => Folder::get(), 'entries' => $this->entriesRepository->getEntries()]);
     return view('home');
 }