Posts by Jean Sumara • 43 points
4 posts
-
1
votes2
answers228
viewsA: What’s wrong? BD + Laravel
When the date 01/01/1970 appears it is very likely that the data is coming as YYYY-MM-DD and you are ordering it to show d/m/Y and this error occurs. A good way to remedy this is by making a helper…
-
3
votes1
answer186
viewsQ: Function extension on the Laravel
I’m using the Laravel 5.3 and apparently I have a Controller calling the function: (new AnuncioRepository())->getListagemAnuncios() and the SQL for that is: return DB::select(' SELECT anuncio.id,…
-
0
votes3
answers310
viewsA: Add variables to Auth 4.2
Do something like this, follow the controller: public function dadosUsuario(Request $request) { $dadosUsuario = Auth::user(); $dadosUsuario->vendedor = Auth::user()->vendedor; return…
-
0
votes0
answers186
viewsQ: Laravel with JWT not authenticate by header
I’m using the Laravel 5.3 along with the JWT, but when I send the authentication by header it returns to me that I am not authenticated and I forward the token by parameter it displays me the…