Skip to content

A self-hosted media server and file management system

add sanctum env lines and force pgsql as default database

aminnausin84d30ed67233
diff --git a/.env.example b/.env.example
index 3cad20b7..6d0e527a 100644
--- a/.env.example
+++ b/.env.example
@@ -2,17 +2,20 @@ APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
-APP_URL=https://localhost
+APP_URL=https://app.test:8080
+SESSION_DOMAIN=app.test
+SANCTUM_STATEFUL_DOMAINS=app.test:8080
+DEBUGBAR_ENABLED=false
MASTER_STORAGE=false
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
-DB_CONNECTION=mysql
+DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
-DB_PORT=3306
+DB_PORT=5432
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
diff --git a/config/database.php b/config/database.php
index 137ad18c..9144b5f5 100644
--- a/config/database.php
+++ b/config/database.php
@@ -15,7 +15,7 @@ return [
|
*/
- 'default' => env('DB_CONNECTION', 'mysql'),
+ 'default' => env('DB_CONNECTION', 'pgsql'),
/*
|--------------------------------------------------------------------------