vendredi 31 juillet 2020

Add subdomain parameter in api routes Laravel

I'm trying to add parameter subdomain in routes in Laravel 5.8

Here is my code:

Route::domain('{subdomain}.localhost:8080')->group(function () {

    Route::group(['prefix' => 'auth'], function () {
        Route::post('login', 'Api\Auth\LoginController@login');
        Route::post('register', 'Api\Auth\RegisterController@register');
    });
});

But I get this error:

enter image description here

Help me to understand what am I missing!



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3jVr1ml
via IFTTT

Aucun commentaire:

Enregistrer un commentaire