1
0
mirror of https://github.com/docker/awesome-compose.git synced 2025-06-30 01:31:06 +00:00
awesome-compose/react-laravel-mysql/backend/routes/api-1.php
Raghavendra a015fb59f3 React - Laravel - MySQL Compose sample
- Frontend: React Js setup with Vite
- Backend: Laravel
- Database: MySQL

Signed-off-by: Raghavendra N <8619262+raghavendra89@users.noreply.github.com>
2025-01-01 14:28:27 +05:30

11 lines
215 B
PHP

<?php
use App\Models\Config;
Route::get('/config', function (Request $request) {
$config = Config::where('key', ['title'])->first();
return response()->json([
'title' => $config->title
]);
});