Answer the question
In order to leave comments, you need to log in
Why api stopped working on Laravel?
Sitting means learning to write api on Laravel.
Route::get('{user_id}', 'Api\[email protected]');
public function getUser($user_id) {
return response()->json(User::find($user_id), 200);
}
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