Answer the question
In order to leave comments, you need to log in
How do I usually implement api registration on laravel?
I want to make frontend spa a vue app and backend laravel. It's just not clear yet, let's say standard registration creates a user, but for some reason does not authorize him. According to the article https://solutionfactor.net/blog/2017/11/20/laravel...
Route::group(['middleware' => ['api','cors']], function () {
Route::post('auth/register', 'Auth\[email protected]');
});
Answer the question
In order to leave comments, you need to log in
Read about jwt authorization. There are many articles for laravel and vue. Whether or not to group routes is a matter of taste, but an intermediary must be inserted. For example, for jwt there will be jwt.auth
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question