Closed nationdata-it closed 7 months ago
Laravel doesn’t supports this database type sorry
Laravel itself doesn't come with built-in support for MongoDB out of the box. However, there are community-developed packages like mongodb/laravel-mongodb that extend Laravel's capabilities to work with MongoDB databases. It's not uncommon for these packages to function seamlessly with local MongoDB instances but encounter issues when connecting to MongoDB Atlas, which is a cloud-based MongoDB service. thanks for your response.
Description
Logs when using php 7.4: [08-Mar-2024 15:18:44] WARNING: [pool valet] child 48680 exited on signal 6 (SIGABRT) after 240186.833239 seconds from start
==> /Users/myuser/.config/valet/Log/nginx-error.log <== 2024/03/08 15:18:44 [error] 568#0: *1169 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: mysite.test, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/Users/myuser/.config/valet/valet74.sock:", host: "mysite.test"
==> /opt/homebrew/var/log/php-fpm.log <== [08-Mar-2024 15:18:44] NOTICE: [pool valet] child 52224 started
Logs when using php 8.2: ==> /Users/myuser/.config/valet/Log/nginx-error.log <== 2024/03/08 15:25:57 [error] 568#0: *1177 upstream prematurely closed connection while reading response header from upstream, client: 127.0.0.1, server: mysite2.test, request: "GET /test1 HTTP/2.0", upstream: "fastcgi://unix:/Users/myuser/.config/valet/valet82.sock:", host: "mysite2.test"
==> /opt/homebrew/var/log/php-fpm.log <== [08-Mar-2024 15:25:57] WARNING: [pool valet] child 833 exited on signal 6 (SIGABRT) after 367025.662150 seconds from start [08-Mar-2024 15:25:57] NOTICE: [pool valet] child 53153 started
Steps To Reproduce
.env: ` DB_CONNECTION=mongodb DB_DSN="mongodb+srv://connection" DB_PORT=27017 DB_DATABASE=dbname
rest env configs
web.php
Route::get('/test1', function () { $user = User::first(); dd($user->toArray()); });
Diagnosis
sw_vers
valet --version
cat ~/.config/valet/config.json
cat ~/.composer/composer.json
composer global diagnose
composer global outdated
ls -al /etc/sudoers.d/
brew config
brew services list
brew list --formula --versions | grep -E "(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@\d\..*)?\s"
brew outdated
brew tap
php -v
which -a php
php --ini
nginx -v
curl --version
php --ri curl
/opt/homebrew/bin/ngrok version
ls -al ~/.ngrok2
brew info nginx
brew info php
brew info openssl
openssl version -a
openssl ciphers
sudo nginx -t
which -a php-fpm
/opt/homebrew/opt/php/sbin/php-fpm -v
sudo /opt/homebrew/opt/php/sbin/php-fpm -y /opt/homebrew/etc/php/8.3/php-fpm.conf --test
ls -al ~/Library/LaunchAgents | grep homebrew
ls -al /Library/LaunchAgents | grep homebrew
ls -al /Library/LaunchDaemons | grep homebrew
ls -al /Library/LaunchDaemons | grep "com.laravel.valet."
ls -aln /etc/resolv.conf
cat /etc/resolv.conf
ifconfig lo0
sh -c 'echo "------\n/opt/homebrew/etc/nginx/valet/valet.conf\n---\n"; cat /opt/homebrew/etc/nginx/valet/valet.conf | grep -n "# valet loopback"; echo "\n------\n"'
sh -c 'for file in ~/.config/valet/dnsmasq.d/*; do echo "------\n~/.config/valet/dnsmasq.d/$(basename $file)\n---\n"; cat $file; echo "\n------\n"; done'
sh -c 'for file in ~/.config/valet/nginx/*; do echo "------\n~/.config/valet/nginx/$(basename $file)\n---\n"; cat $file | grep -n "# valet loopback"; echo "\n------\n"; done'