/**
  * Get static page by url
  *
  * @param $url
  * @return mixed
  */
 public function getPage($url)
 {
     $page = Page::whereUrl($url)->first();
     if (!$page) {
         throw (new ModelNotFoundException())->setModel(get_class($page));
     } else {
         \Config::set("website.title", $page->title);
         \Config::set("website.keywords", $page->keywords);
         \Config::set("website.description", $page->description);
         return view("pages.page")->withPage($page);
     }
 }