Example #1
0
 /**
  * Set Routes
  * @return mixed
  */
 public static function setRoutes()
 {
     //Get Routes
     $routes = false;
     try {
         $routes = Page::wherePublished("1")->get();
     } catch (\Exception $e) {
         //Simply ignore exceptions thrown by core Laravel
     }
     Cache::forever('cmsRoutes', $routes);
     return $routes;
 }