+ /**
+ * Get custom head HTML, Used in ajax calls to show in editor.
+ * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
+ */
+ public function customHeadContent()
+ {
+ return view('partials.custom-head-content');
+ }
+
+ /**
+ * Show the view for /robots.txt
+ * @return $this
+ */
+ public function getRobots()
+ {
+ $sitePublic = setting('app-public', false);
+ $allowRobots = config('app.allow_robots');
+ if ($allowRobots === null) {
+ $allowRobots = $sitePublic;
+ }
+ return response()
+ ->view('common.robots', ['allowRobots' => $allowRobots])
+ ->header('Content-Type', 'text/plain');
+ }
+
+ /**
+ * Show the route for 404 responses.
+ */
+ public function getNotFound()
+ {
+ return response()->view('errors.404', [], 404);
+ }