fernandoAlco's avatar

fernandoAlco wrote a comment+100 XP

5mos ago

Hi, I really enjoyed this course, thank you!

If you're using the latest version of the Starter Kit with Wayfinder, I like this way of handling forms. We avoid using useForm, specify the PUT method, and the images are handled automatically. Just import Form from Inertia and PuppyController from actions.

fernandoAlco's avatar

fernandoAlco wrote a comment+100 XP

5mos ago

Great course! I learned a lot, thank you

fernandoAlco's avatar

fernandoAlco liked a comment+100 XP

5mos ago

In order to implement versioning in Laravel 11 you need to update bootstrap\app.php

->withRouting(
        web: __DIR__ . '/../routes/web.php',
        api: __DIR__ . '/../routes/api.php',
        commands: __DIR__ . '/../routes/console.php',
        health: '/up',
        then: function () {
            Route::middleware('api')
                ->prefix('api/v1')
                ->group(base_path('routes/api_v1.php'));

            Route::middleware('api')
                ->prefix('api/v2')
                ->group(base_path('routes/api_v2.php'));

            // ... and so on
        }
    )