Thanks for this. Have been using swagger in Symfony. This is a nice introduction into laravel.
I have found some errors in the router Route::post('v1/user-login', 'API\ V1\AuthController@login'); should be without a space: Route::post('v1/user-login', 'API\V1\AuthController@login'); Further you introduced the namespace App\Http\Controllers\API\Mobile\V1 but reference to it without the Mobile part.
Route::post('v1/user-login', 'API\ V1\AuthController@login');
Route::post('v1/user-login', 'API\V1\AuthController@login');
App\Http\Controllers\API\Mobile\V1
Lastly, my default laravel doesn't seem to have a field mobile_number in it.
mobile_number
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for this. Have been using swagger in Symfony. This is a nice introduction into laravel.
I have found some errors in the router
Route::post('v1/user-login', 'API\ V1\AuthController@login');
should be without a space:
Route::post('v1/user-login', 'API\V1\AuthController@login');
Further you introduced the namespace
App\Http\Controllers\API\Mobile\V1
but reference to it without the Mobile part.Lastly, my default laravel doesn't seem to have a field
mobile_number
in it.