Posts by Gabriel Faria • 190 points
6 posts
-
0
votes1
answer277
viewsA: creation of password in the standard
The hashing of passwords in Laravel is configured in config/hashing.php and, by default, is configured to use the algorithm bcrypt. To create a password using the hash function, you can use the…
-
1
votes1
answer55
viewsA: Variable returns NULL - Trying to get Property of non-object Variable returns NULL
According to Exception, the instant you try to grab the property $user->id, the variable $user is not an object. Actually, this variable is null. This is because you are assigning to the variable…
laravelanswered Gabriel Faria 190 -
2
votes1
answer36
viewsA: Implementation error
According to Exception itself, the prototype of its function apply is accepting a type parameter Illuminate\Database\Query\Builder, when you should accept one of those…
-
2
votes2
answers110
viewsA: Error Trying to get Property... PHP + Error og:image API Facebook (Share)
I imagine the input 'image' should be accessed as $prod['imagem'], not as $prod->imagem since $Prod is an associative array in case of function success mysqli_fetch_assoc.…
-
1
votes1
answer241
viewsA: I can’t compare char[]
You are using the logical operator == to compare responseLogin with "ADMIN". What is happening, in fact, is the comparison of the memory addresses of the matrices responseLogin and "ADMIN". Thus, as…
-
5
votes1
answer3323
viewsA: Code stack and pop a stack
The error is found in this excerpt: void empilha (int *p[], int *topo, int valor) { if (*topo<10) { p[*topo] = valor; *topo++; // note essa declaração } else printf ("Pilha cheia!"); } When you…
canswered Gabriel Faria 190