I have being reading and watching some tutorials about API development in Laravel. I am new to API development entirely although I have used Laravel a bit.
From all the tutorials I have gone through, they handled: login, get some data, update information, delete information, and even insert some information into the database.
My problem is that none of this tutorials handle something like a user registration.
Route::group(array('prefix' => 'api/v1', 'before' => 'auth.basic'), function()
{
Route::resource('users', 'UsersController');
Route::resource('messages', 'MessagesController');
});
From the code above, it assumes that user must have registered before gaining access to the controllers cause of the auth.basic
.
So, my question is this: How can I handle registration? cause it doesn't seem I will group it with the codes above.