Posts by Mateus Gonçalves • 119 points
4 posts
-
0
votes4
answers3827
viewsA: Percentage Mask
I found this way here to do using Mask Jquery: $('#percent').mask('##0,00%', {reverse: true}); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>…
-
1
votes3
answers1241
viewsA: Add a column with row number in select result
You can do it like this: SELECT @i:=@i+1 AS position, ds_estados FROM estados, (SELECT @i:=0) AS t WHERE 1
-
-1
votes1
answer35
viewsA: How do I get a user id from the creation of a Validator in Laravel?
We can take it this way, where we’re getting from the url: request()->route('id');
-
0
votes1
answer35
viewsQ: How do I get a user id from the creation of a Validator in Laravel?
public function boot() { //Criação de uma nova validação \Validator::extend('unique_cpf', function ($attribute, $value, $parameters, $validator) { $value = str_replace(['.','-'],'', $value); return…