feat: phpmyadmin

This commit is contained in:
Leon 2025-12-19 10:38:40 +01:00
parent a6923865de
commit d4c249ed75
3 changed files with 25 additions and 2 deletions

View File

@ -12,8 +12,17 @@ class HuntsController extends Controller
*/
public function index()
{
$hunts = Hunts::paginate(10);
return response()->json($hunts);
try {
$hunts = Hunts::paginate(10);
return response()->json($hunts);
} catch (\Exception $e) {
\Illuminate\Support\Facades\Log::error('Error fetching hunts: ' . $e->getMessage());
return response()->json([
'error' => 'Server Error',
'message' => $e->getMessage(),
'trace' => $e->getTraceAsString()
], 500);
}
}
/**

View File

@ -48,6 +48,20 @@ services:
- "-p${DB_PASSWORD}"
retries: 3
timeout: 5s
phpmyadmin:
image: phpmyadmin:latest
ports:
- "8080:80"
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: "${DB_USERNAME}"
PMA_PASSWORD: "${DB_PASSWORD}"
networks:
- sail
depends_on:
- mysql
networks:
sail:
driver: bridge