feat: phpmyadmin
This commit is contained in:
parent
a6923865de
commit
d4c249ed75
|
|
@ -12,8 +12,17 @@ class HuntsController extends Controller
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$hunts = Hunts::paginate(10);
|
try {
|
||||||
return response()->json($hunts);
|
$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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
14
compose.yaml
14
compose.yaml
|
|
@ -48,6 +48,20 @@ services:
|
||||||
- "-p${DB_PASSWORD}"
|
- "-p${DB_PASSWORD}"
|
||||||
retries: 3
|
retries: 3
|
||||||
timeout: 5s
|
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:
|
networks:
|
||||||
sail:
|
sail:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue