-
- return view('home.default', $commonData);
- }
-
- /**
- * Show the view for /robots.txt.
- */
- public function robots()
- {
- $sitePublic = setting('app-public', false);
- $allowRobots = config('app.allow_robots');
-
- if ($allowRobots === null) {
- $allowRobots = $sitePublic;
- }
-
- return response()
- ->view('misc.robots', ['allowRobots' => $allowRobots])
- ->header('Content-Type', 'text/plain');
- }
-
- /**
- * Show the route for 404 responses.
- */
- public function notFound()
- {
- return response()->view('errors.404', [], 404);
- }
-
- /**
- * Serve the application favicon.
- * Ensures a 'favicon.ico' file exists at the web root location (if writable) to be served
- * directly by the webserver in the future.
- */
- public function favicon(FaviconHandler $favicons)
- {
- $exists = $favicons->restoreOriginalIfNotExists();
- return response()->file($exists ? $favicons->getPath() : $favicons->getOriginalPath());
- }
-
- /**
- * Serve the application manifest.
- * Ensures a 'manifest.json'
- */
- public function manifest()
- {
- $manifest = config('manifest');
-
- if (setting()->getForCurrentUser('dark-mode-enabled')){
- $manifest["background_color"] = setting('app-color-dark');
- }else{
- $manifest["background_color"] = setting('app-color');
- }