function __construct() { $pages_repo = new PagesRepo(); view()->share('pages', $pages_repo->getAllFront()); }