runningInConsole()) { try { View::share('momentFiche', Moments::getCachedStar() ?? false); } catch (\Exception $e) { Log::critical($e->getMessage()); View::share('momentFiche', false); } try { View::share('actusGlobal', Articles::getCachedActus() ?? []); } catch (\Exception $e) { Log::critical($e->getMessage()); View::share('actusGlobal', []); } } } }