Answer the question
In order to leave comments, you need to log in
How to handle post requests in laravel with a request to the controller?
I am implementing react frontend and I need to implement api registration. I set up route but I can't figure out how to access the controller that registers the user.
My implementation
Route::post('/registration', [
'as' => Request::class, 'uses' => '[email protected]'
]);
Route::post('/registration', function(Request $request){
// И тут я встал в ступор
});
Answer the question
In order to leave comments, you need to log in
Route::post('/registration', 'Auth\[email protected]');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question