summaryrefslogtreecommitdiff
path: root/config/sitemap.php
diff options
context:
space:
mode:
authorDeveloper2026-06-27 02:47:40 +0200
committerDeveloper2026-06-27 02:47:40 +0200
commit34ee983becfa088d0c39c4f0d9b35f038b351a78 (patch)
tree25737516a97c596b8b88d2da8dfb0ded5a76a1b6 /config/sitemap.php
downloadcurious-34ee983becfa088d0c39c4f0d9b35f038b351a78.tar.gz
feat: add cinema module for browsing movies from hncrawler DB
- Add 'cinema' database connection (hncrawler DB) to config/database.php - Create CinemaController with cinema(), show(), search() methods - Add /cinema, /cinema/movie/{imdb_id}, /cinema/search routes - Create cinema.blade.php (grid listing with posters, ratings, pagination) - Create cinema-show.blade.php (detail page with cast, genres, synopsis) - Add Cinema link to navbar - Update page title logic for cinema routes
Diffstat (limited to 'config/sitemap.php')
-rw-r--r--config/sitemap.php57
1 files changed, 57 insertions, 0 deletions
diff --git a/config/sitemap.php b/config/sitemap.php
new file mode 100644
index 0000000..8ffec69
--- /dev/null
+++ b/config/sitemap.php
@@ -0,0 +1,57 @@
+<?php
+
+use GuzzleHttp\RequestOptions;
+use Spatie\Sitemap\Crawler\Profile;
+
+return [
+
+ /*
+ * These options will be passed to GuzzleHttp\Client when it is created.
+ * For in-depth information on all options see the Guzzle docs:
+ *
+ * http://docs.guzzlephp.org/en/stable/request-options.html
+ */
+ 'guzzle_options' => [
+
+ /*
+ * Whether or not cookies are used in a request.
+ */
+ RequestOptions::COOKIES => true,
+
+ /*
+ * The number of seconds to wait while trying to connect to a server.
+ * Use 0 to wait indefinitely.
+ */
+ RequestOptions::CONNECT_TIMEOUT => 10,
+
+ /*
+ * The timeout of the request in seconds. Use 0 to wait indefinitely.
+ */
+ RequestOptions::TIMEOUT => 10,
+
+ /*
+ * Describes the redirect behavior of a request.
+ */
+ RequestOptions::ALLOW_REDIRECTS => false,
+ ],
+
+ /*
+ * The sitemap generator can execute JavaScript on each page so it will
+ * discover links that are generated by your JS scripts. This feature
+ * is powered by headless Chrome.
+ */
+ 'execute_javascript' => false,
+
+ /*
+ * The package will make an educated guess as to where Google Chrome is installed.
+ * You can also manually pass it's location here.
+ */
+ 'chrome_binary_path' => null,
+
+ /*
+ * The sitemap generator uses a CrawlProfile implementation to determine
+ * which urls should be crawled for the sitemap.
+ */
+ 'crawl_profile' => Profile::class,
+
+];