phpmyadmin service added

This commit is contained in:
erishBRBS 2025-05-06 16:22:05 +08:00
parent 71345b605e
commit 3f0678397a
20 changed files with 31 additions and 6 deletions

6
.env
View File

@ -9,9 +9,9 @@ LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=db_mysql
DB_PORT=3306
DB_DATABASE="unioilLoyaltyApp"
DB_USERNAME="admin_erish"
DB_PASSWORD="laravel"
DB_DATABASE=unioilLoyaltyApp
DB_USERNAME=admin_erish
DB_PASSWORD=laravel
BROADCAST_DRIVER=log
CACHE_DRIVER=file

View File

@ -114,6 +114,13 @@ class UserController extends Controller
'is_active' => 1,
]);
return response()->json([
'success' => false,
'testDITO' =>$request->username,
'testDITO2' =>$admin,
], 200);
if($admin->count())
{
if($admin[0]['status'] == 1)

View File

@ -23,8 +23,8 @@
},
"require-dev": {
"beyondcode/laravel-dump-server": "^2.0",
"fakerphp/faker": "*",
"filp/whoops": "^2.0",
"fakerphp/faker": "^1.9",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^8.0",
"phpunit/phpunit": "^10.0"

2
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "ed9b7b9d24984ea7151f827620821d79",
"content-hash": "fd8524023e7a69526ee6118304ac60d3",
"packages": [
{
"name": "aws/aws-crt-php",

View File

@ -42,6 +42,19 @@ services:
networks:
- app_network
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin
restart: unless-stopped
environment:
PMA_HOST: db_mysql # Hostname of your MySQL container
PMA_PORT: 3306
MYSQL_ROOT_PASSWORD: laravel # Root password (match with your db container)
ports:
- "8080:80" # Exposes phpMyAdmin on port 8080
networks:
- app_network
nginx:
image: nginx:alpine
container_name: nginx
@ -64,4 +77,4 @@ volumes:
networks:
app_network:
driver: bridge
driver: bridge

0
public/.DS_Store vendored Normal file → Executable file
View File

0
public/.htaccess Normal file → Executable file
View File

0
public/css/app.css vendored Normal file → Executable file
View File

0
public/favicon.ico Normal file → Executable file
View File

0
public/index.php Normal file → Executable file
View File

0
public/js/app.js vendored Normal file → Executable file
View File

0
public/robots.txt Normal file → Executable file
View File

0
public/svg/1.apk Normal file → Executable file
View File

0
public/svg/2.apk Normal file → Executable file
View File

0
public/svg/403.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

0
public/svg/404.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

0
public/svg/500.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
public/svg/503.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

0
public/svg/uni1.apk Normal file → Executable file
View File

View File

@ -254,3 +254,8 @@ Route::get('mobile/stationfuels','API\StationController@get_station_fuels');
//mobile version
Route::get('mobile/getVersion/{platform}','API\SystemPreferenceController@mobile_version');
Route::get('/test', function () {
return 'Test route';
});