I am trying to register a new user who is not on the middleware protected route token jwt, but I am getting the return.
{
"error": "The token could not be parsed from the request"
}
Following routes routes / api.php
Route::group(['middleware' => 'jwt.auth'], function(){
Route::resource('tipoDespesa', 'TipoDespesaController');
Route::resource('mudarTexto', 'MudarTextoController');
// Usuario
// Route::get('user', 'PessoaController@show');
// Route::put('user', 'PessoaController@update');
// Route::delete('user', 'PessoaController@destroy');
Route::resource('conta', 'ContaController');
Route::resource('categoria-despesa', 'CategoriaDespesaController');
Route::put('conta/ativar/{id}', 'ContaController@ativar');
Route::get('auth/me', 'AuthController@me');
});
Route::post('auth/login', 'AuthController@login');
Route::post('auth/logout', 'AuthController@logout');
Route::post('auth/refresh', 'AuthController@refresh');
Route::post('new/user', 'PessoaController@store');
Postman
PersonController@store