mbg22 liked a comment+100 XP
3mos ago
Laravel API Master Class: Ep 4, How to Version Your API
@Bionik6 my solution with Laravel 11
bootstrap/app.php file:
...
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
api: [// <-- we can use an array here
__DIR__.'/../routes/api.php',
__DIR__.'/../routes/api_v1.php',
],
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
...
and inside api_v1.php file:
...
Route::prefix('v1')->group(function () {
Route::apiResource('tickets', \App\Http\Controllers\Api\V1\TicketController::class);
});
...
mbg22 wrote a reply+100 XP
4mos ago
Which is the best IDE: Cursor or PhpStorm?
Been using PHPStorm for a while now and i'm absolutely loving it. Would wholeheartedly recommend it.
mbg22 wrote a reply+100 XP
4mos ago
React: MUI Menu does not render although data exists (object vs array issue)
Hi @mozew Please explain your data structure further. From your console log i don't see where the related data / the actual items should be that you're trying to map over and render.