Answer the question
In order to leave comments, you need to log in
What kind of data to transfer to the service layer of the application?
Greetings!
We develop API on Laravel with colleagues.
Given:
$result = $this->userService->login($request); // Первый вариант.
$credentials = $request->only(['email', 'password']);
$result = $this->userService->login($credentials); // Второй вариант.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question