{"id":1968,"date":"2018-09-26T11:00:54","date_gmt":"2018-09-26T03:00:54","guid":{"rendered":"https:\/\/zocodev.com\/?p=56"},"modified":"2018-09-26T11:00:54","modified_gmt":"2018-09-26T03:00:54","slug":"laravel-mongodb","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/laravel-mongodb.html","title":{"rendered":"Laravel\u6846\u67b6\u4f7f\u7528MongoDB\u9047\u5230\u7684\u95ee\u9898\u89e3\u51b3"},"content":{"rendered":"<p>\u4e4b\u524d\u8bf4\u7684\uff0c\u6211\u4e00\u76f4\u662f\u5c06macOS\u4f5c\u4e3a\u5f00\u53d1\u5e73\u53f0\uff0c\u76f4\u63a5\u5728<a href=\"https:\/\/zocodev.com\/macos-nginx-php-mysql.html\">macOS\u7cfb\u7edf\u914d\u7f6eNginx PHP\u53caMySQL<\/a>\uff0c\u7531\u4e8e\u9879\u76ee\u9700\u6c42\uff0c\u9700\u8981\u4f7f\u7528\u5230MongoDB\uff0c\u8fd9\u7bc7\u5c31\u662f\u4e00\u90e8\u5728macOS\u7cfb\u7edf\u4e0b\u8fd0\u884cLaravel\u6846\u67b6\u4f7f\u7528MongoDB\u9047\u5230\u95ee\u9898\u89e3\u51b3\u95ee\u9898\u7684\u6d41\u6c34\u8d26\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u4e3a\u4e86\u4e0d\u6c61\u67d3\u6b63\u5f0f\u5f00\u53d1\u7684\u4ee3\u7801\uff0c\u6211\u65b0\u5efa\u4e86\u4e00\u4e2aLaravel\u5de5\u7a0b\uff0c\u7248\u672c\u662f5.5 LTS\uff0cMongoDB\u6269\u5c55\u4f7f\u7528\u7684\u662f<strong><a href=\"https:\/\/github.com\/jenssegers\/laravel-mongodb\">laravel-mongodb<\/a><\/strong>\uff0c\u6839\u636e\u6587\u6863\uff0c\u5b89\u88c5\u8be5\u6269\u5c55\u7684\u547d\u4ee4\u4e3a\uff1a<\/p>\n<pre><code>composer require jenssegers\/mongodb\n<\/code><\/pre>\n<p>\u4f46\u662f\u4e00\u6267\u884c\u8fd9\u6761\u547d\u4ee4\uff0c\u5c31\u51fa\u73b0\u4e86\u4e00\u5927\u5806\u7684\u9519\u8bef\uff1a<\/p>\n<pre><code>zocoMac:laravel-test zoco$ composer require jenssegers\/mongodb\nUsing version ^3.4 for jenssegers\/mongodb\n.\/composer.json has been updated\nLoading composer repositories with package information\nUpdating dependencies (including require-dev)\nYour requirements could not be resolved to an installable set of packages.\n\n  Problem 1\n    - jenssegers\/mongodb v3.4.0 requires mongodb\/mongodb ^1.0.0 -&gt; satisfiable by mongodb\/mongodb[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.4.2].\n    - jenssegers\/mongodb v3.4.1 requires mongodb\/mongodb ^1.0.0 -&gt; satisfiable by mongodb\/mongodb[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.4.2].\n    - jenssegers\/mongodb v3.4.2 requires mongodb\/mongodb ^1.0.0 -&gt; satisfiable by mongodb\/mongodb[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.4.2].\n    - mongodb\/mongodb 1.4.2 requires ext-mongodb ^1.5.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.4.1 requires ext-mongodb ^1.5.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.4.0 requires ext-mongodb ^1.5.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.3.2 requires ext-mongodb ^1.4.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.3.1 requires ext-mongodb ^1.4.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.3.0 requires ext-mongodb ^1.4.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.2.0 requires ext-mongodb ^1.3.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.1.2 requires ext-mongodb ^1.2.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.1.1 requires ext-mongodb ^1.2.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.1.0 requires ext-mongodb ^1.2.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.0.5 requires ext-mongodb ^1.1.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.0.4 requires ext-mongodb ^1.1.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.0.3 requires ext-mongodb ^1.1.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - mongodb\/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -&gt; the requested PHP extension mongodb is missing from your system.\n    - Installation request for jenssegers\/mongodb ^3.4 -&gt; satisfiable by jenssegers\/mongodb[v3.4.0, v3.4.1, v3.4.2].\n\n  To enable extensions, verify that they are enabled in your .ini files:\n    - \/usr\/local\/etc\/php\/7.1\/php.ini\n    - \/usr\/local\/etc\/php\/7.1\/conf.d\/ext-opcache.ini\n  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.\n\nInstallation failed, reverting .\/composer.json to its original content.\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u51fa\uff0c\u8fd9\u4e00\u6b65\u8bf4\u7684\u662f\u8be5\u6269\u5c55\u4f9d\u8d56PHP\u7684MongoDB\u6269\u5c55\uff0c\u90a3\u6211\u4eec\u52a8\u624b\u88c5\u4e0a\u5c31\u662f\u4e86\u3002<\/p>\n<h2>macOS\u7cfb\u7edf\u5b89\u88c5PHP\u7684MongoDB\u6269\u5c55<\/h2>\n<p>\u4e0a\u6b21\u8bf4\u4e86\uff0c\u6211\u76ee\u524d\u7684\u5f00\u53d1\u73af\u5883\u662f\u76f4\u63a5\u7528Homebrew\u5b89\u88c5\u7684Nginx\u3001PHP\u3001MySQL\u7b49\u7ec4\u4ef6\uff0c\u4e4b\u524d\u662f\u53ef\u4ee5\u76f4\u63a5\u7528brew\u5b89\u88c5\u76f8\u5e94\u7684PHP\u6269\u5c55\u7684\uff0c\u6bd4\u5982\u8bf4\uff1a<\/p>\n<pre><code>brew install php71-mongodb\n<\/code><\/pre>\n<p>\u4f46\u662f\u4eceHomebrew 1.5.0\u5f00\u59cb\uff0c\u8fd9\u79cd\u65b9\u6cd5\u88ab\u9057\u5f03\u4e86\uff0c\u4f1a\u63d0\u793a<strong>Error: No available formula with the name &#8220;php71-mongodb&#8221;<\/strong>\u3002\u5982\u679c\u7cfb\u7edf\u4e0d\u81ea\u5e26\u76f8\u5e94\u7684\u6269\u5c55\uff0c\u5c31\u9700\u8981\u6211\u4eec\u624b\u52a8\u4f7f\u7528<strong>pecl<\/strong>\u5b89\u88c5\uff0c\u6839\u636e<a href=\"https:\/\/secure.php.net\/manual\/en\/mongodb.installation.pecl.php\">PHP\u5b98\u65b9\u6587\u6863<\/a>\uff0c\u5728macOS\/Linux\/Unix\u7cfb\u7edf\u4e0b\uff0c\u53ea\u9700\u8fd9\u4e00\u884c\u547d\u4ee4\u5373\u53ef\uff1a<\/p>\n<pre><code>sudo pecl install mongodb\n<\/code><\/pre>\n<p>\u5f53\u7136\uff0c\u90a3\u53ea\u662f\u4e00\u822c\u60c5\u51b5\uff0c\u5728\u56fd\u5185\u7279\u8272\u7f51\u7edc\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u76f4\u63a5\u8fd0\u884c\u5f88\u53ef\u80fd\u4f1a\u56e0\u4e3a\u7f51\u7edc\u539f\u56e0\u800c\u62a5\u9519\uff0c\u5efa\u8bae\u6302\u4e2a\u547d\u4ee4\u884cdl\u518d\u8fdb\u884c\u5b89\u88c5\u8bd5\u8bd5\u3002\u5982\u679c\u5b9e\u5728\u662f\u4e0b\u8f7d\u4e0d\u4e0b\u6765\uff0c\u4e5f\u53ef\u4ee5\u5230<a href=\"https:\/\/pecl.php.net\/package\/mongodb\">\u8fd9\u91cc<\/a>\u4e0b\u8f7d\u5bf9\u5e94\u7248\u672c\u7684\u6e90\u7801\u5305\u8fdb\u884c\u624b\u52a8\u5b89\u88c5\u3002<\/p>\n<p>\u5982\u679c\u81ea\u52a8\u5b89\u88c5\u6210\u529f\uff0c\u6700\u7ec8\u770b\u5230\u4f1a\u6709\u8fd9\u4e48\u4e00\u6bb5\u8f93\u51fa\uff1a<\/p>\n<pre><code>Build process completed successfully\nInstalling '\/usr\/local\/Cellar\/php@7.1\/7.1.22\/pecl\/20160303\/mongodb.so'\ninstall ok: channel:\/\/pecl.php.net\/mongodb-1.5.3\nExtension mongodb enabled in php.ini\n<\/code><\/pre>\n<p>\u65e2\u7136\u6210\u529f\u4e86\uff0cPHP\u91cc\u9762\u80af\u5b9a\u4f1a\u6709\u5bf9\u5e94\u7684MongoDB\u6a21\u5757\u4e86\uff0c\u547d\u4ee4\u884c\u4e0b\u4f7f\u7528<strong>php -m<\/strong>\u53ef\u4ee5\u5217\u51fa\u6240\u6709\u5df2\u5b89\u88c5\u7684\u6a21\u5757\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u518d\u6b21\u8fd0\u884c\u4e0a\u9762\u54ea\u884ccomposer\u5b89\u88c5\u547d\u4ee4\uff1a<\/p>\n<pre><code>zocoMac:laravel-test zoco$ composer require jenssegers\/mongodb\nUsing version ^3.4 for jenssegers\/mongodb\n.\/composer.json has been updated\nLoading composer repositories with package information\nUpdating dependencies (including require-dev)\nYour requirements could not be resolved to an installable set of packages.\n\n  Problem 1\n    - Conclusion: don't install jenssegers\/mongodb v3.4.2\n    - Conclusion: don't install jenssegers\/mongodb v3.4.1\n    - Conclusion: remove laravel\/framework v5.5.43\n    - Installation request for jenssegers\/mongodb ^3.4 -&gt; satisfiable by jenssegers\/mongodb[v3.4.0, v3.4.1, v3.4.2].\n    - Conclusion: don't install laravel\/framework v5.5.43\n    - jenssegers\/mongodb v3.4.0 requires illuminate\/events ^5.6 -&gt; satisfiable by illuminate\/events[v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.26, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9, v5.7.0, v5.7.1, v5.7.2, v5.7.3, v5.7.4, v5.7.5].\n    - don't install illuminate\/events v5.6.0|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.1|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.10|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.11|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.12|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.13|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.14|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.15|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.16|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.17|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.19|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.2|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.20|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.21|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.22|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.23|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.24|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.25|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.26|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.27|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.28|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.29|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.3|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.30|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.31|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.32|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.33|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.34|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.35|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.36|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.37|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.38|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.4|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.5|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.6|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.7|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.8|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.6.9|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.7.0|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.7.1|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.7.2|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.7.3|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.7.4|don't install laravel\/framework v5.5.43\n    - don't install illuminate\/events v5.7.5|don't install laravel\/framework v5.5.43\n    - Installation request for laravel\/framework (locked at v5.5.43, required as 5.5.*) -&gt; satisfiable by laravel\/framework[v5.5.43].\n<\/code><\/pre>\n<p>\u653e\u72d7\u641c\u4e86\u4e00\u628a\u4e5f\u6ca1\u627e\u5230\u95ee\u9898\u51fa\u5728\u54ea\u91cc\uff0c\u4f46\u662f\u65e0\u610f\u4e2d\u53d1\u73b0\u4e86\u4e00\u4e2a\u89e3\u51b3\u529e\u6cd5\uff0c\u5c31\u662f\u5b89\u88c5\u6307\u5b9a\u7248\u672c\u7684jenssegers\/mongodb\uff0c\u7531\u4e8e\u6211\u7684Laravel\u7248\u672c\u4e3a5.5.x\uff0c\u6700\u597d\u7684\u5c31\u662f\u5b89\u88c53.3.x\u7248\u672c\u7684jenssegers\/mongodb\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code>composer require jenssegers\/mongodb=3.3.*\n\n.\/composer.json has been updated\nLoading composer repositories with package information\nUpdating dependencies (including require-dev)\nPackage operations: 2 installs, 0 updates, 0 removals\n  - Installing mongodb\/mongodb (1.4.2): Downloading (100%)\n  - Installing jenssegers\/mongodb (v3.3.1): Downloading (100%)\njenssegers\/mongodb suggests installing jenssegers\/mongodb-session (Add MongoDB session support to Laravel-MongoDB)\njenssegers\/mongodb suggests installing jenssegers\/mongodb-sentry (Add Sentry support to Laravel-MongoDB)\nWriting lock file\nGenerating optimized autoload files\n&gt; Illuminate\\Foundation\\ComposerScripts::postAutoloadDump\n&gt; @php artisan package:discover\nDiscovered Package: fideloper\/proxy\nDiscovered Package: jenssegers\/mongodb\nDiscovered Package: laravel\/tinker\nDiscovered Package: nesbot\/carbon\nPackage manifest generated successfully.\n<\/code><\/pre>\n<p>\u8fd9\u4e0b\u7ec8\u4e8e\u6210\u529f\u5b89\u88c5\u4e86jenssegers\/mongodb\u3002<\/p>\n<p>\u540e\u6765\u67e5\u770bjenssegers\/mongodb\u6587\u6863\u7684\u65f6\u5019\u624d\u53d1\u73b0\uff0c\u5728jenssegers\/mongodb\u6587\u6863\u5b89\u88c5\u547d\u4ee4\u4e0b\u9762\u5c31\u5217\u51fa\u4e86\u76f8\u5e94\u7684Laravel\u517c\u5bb9\u7248\u672c\uff0c\u53ea\u662f\u81ea\u5df1\u592a\u5927\u610f\u6ca1\u6709\u4ed4\u7ec6\u770b\u6587\u6863\uff1a<\/p>\n<h4>Laravel version Compatibility<\/h4>\n<table>\n<thead>\n<tr>\n<th align=\"left\">Laravel<\/th>\n<th align=\"left\">Package<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\">4.2.x<\/td>\n<td align=\"left\">2.0.x<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">5.0.x<\/td>\n<td align=\"left\">2.1.x<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">5.1.x<\/td>\n<td align=\"left\">2.2.x or 3.0.x<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">5.2.x<\/td>\n<td align=\"left\">2.3.x or 3.0.x<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">5.3.x<\/td>\n<td align=\"left\">3.1.x or 3.2.x<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">5.4.x<\/td>\n<td align=\"left\">3.2.x<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">5.5.x<\/td>\n<td align=\"left\">3.3.x<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">5.6.x<\/td>\n<td align=\"left\">3.4.x<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6839\u636e\u8fd9\u4e2a\u8868\u683c\uff0c\u54ea\u4e2a\u7248\u672c\u7684Laravel\u5b89\u88c5\u54ea\u4e2a\u7248\u672c\u7684jenssegers\/mongodb\u5f00\u53d1\u8005\u90fd\u6709\u660e\u786e\u7684\u8bf4\u660e\uff0c\u5982\u679c\u4f60\u7684Laravel\u7248\u672c\u548c\u6211\u7684\u4e0d\u4e00\u81f4\uff0c\u53ef\u80fd\u9700\u8981\u5728\u4e0a\u8ff0\u5b89\u88c5\u547d\u4ee4\u540e\u9762\u66f4\u6539\u6210\u5bf9\u5e94\u7684\u7248\u672c\u53f7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e4b\u524d\u8bf4\u7684\uff0c\u6211\u4e00\u76f4\u662f\u5c06macOS\u4f5c\u4e3a\u5f00\u53d1\u5e73\u53f0\uff0c\u76f4\u63a5\u5728macOS\u7cfb\u7edf\u914d\u7f6eNginx PHP\u53caMySQL\uff0c\u7531\u4e8e\u9879\u76ee\u9700 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/laravel-mongodb.html\"> <span class=\"screen-reader-text\">Laravel\u6846\u67b6\u4f7f\u7528MongoDB\u9047\u5230\u7684\u95ee\u9898\u89e3\u51b3<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[9],"tags":[24,57,58,59,72,79],"class_list":["post-1968","post","type-post","status-publish","format-standard","hentry","category-mess","tag-composer","tag-laravel","tag-laravel-5-5","tag-laravel-lts","tag-mongodb","tag-php"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=1968"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1968\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=1968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=1968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=1968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}