-
Bootstrap password input eye and show or not
By default, the input type=”password” field leaves characters hidden.If you need to place the eye button next to your password field, to display the password simply do the following Bootstrap password input eye and show or not In the test form we have: In the part where your <script> tag is, place the following: See…
-
Deploy is not in the sudoers file. This incident will be reported [solved]
The solution to the deployment problem is not in the sudoers file. This incident will be reported simply.In the case of the screen, the ‘sudo’ command is not properly enabled.So remove the sudo command from your sequence and it will work.Example: sudo chmod +x hooks/post-receive
-
Error: ENOSPC: System limit for number of file watchers reached, watch
There are some tips in the comments and I brought them to update this question. If you’re facing this problem, then you are probably using a Linux distro and your project is hitting your system’s file watchers limit. On execute NPM RUN DEV at ubuntu, and the system show the error “Error: ENOSPC: System limit…
-
nginx: [emerg] duplicate listen options for [::]:443 [solved]
The error nginx: [emerg] duplicate listen options for [::]:443 usually happens when you have more than one domain or subdomain on a shared server. The error nginx: [emerg] duplicate listen options for [::]:443 Imagine the following scenario:– yoursite.com– api.yoursite.com In this case, you will have an nginx configuration for each domain above, that is: –…
-
GeomFromText() não existe Mysql
O erro GeomFromText() não existe Mysql ocorre pelo fato de a função estar deprecated a partir da versão MySQL 5.7.6. Para solucionar, use ST_GeomFromText()
-
Swal didOpen and didClose
Para quem trabalha com SweetAlert2, já deve ter se deparado com a dúvida sobre como capturar o evendo onClose da popup Swal.fire, procurando pela função didClose(), mas ela não existe. Capturar os eventos da popUp Swal Swal onOpen = didOpen() Para capturar os eventos da popUp Swal ao abrir (show), utilizamos a função didOpen(). Por…
-
Extended Resource And Api Resource Router Laravel Restore And Force Delete
Como sabemos, o laravel possui um sistemas de rotas bastante limpo e fácil de usar. Ao desenvolver uma API Rest, podemos utilizar um comando simples para poder utilizarmos de form automática, uma série de métodos pre formatados do laravel no método resource, veja: Primeiro, vamos criar um controller de exemplo, utilizando para isso o método…
-
Laravel Request Empty On Test Put Method Postman API Rest
Estava desenvolvendo uma API Rest, utilizando para isso o Laravel como backend. Tudo estava correndo muito bem, até que precisamos fazer um teste de edição de dados, utilizando o método HTTP PUT/PACHT e deparamos com um o return $request->all() empty , ou seja, a variável estava vazia, mesmo com o Postman enviando as variáveis contendo…
-
Vue Change URL from localhost:8080 to custom domain
By default, vue-cli operates with http://localhost:8080, but this can cause problems, especially for those working with more than one work case. Faced with the challenge of having a URL with a custom domain for localhost testing, we looked in the official documentation and found some options, which resolved the case very well. To make the…
-
Error: Getaddrinfo Enotfound – NPM Run Serve
If your configuration for .. displays the error Error: getaddrinfo ENOTFOUND don’t worry, we have the solution. More: Vue Change URL from localhost:8080 to custom domain, clique here The error occurs because the NPM server does not find the URL address of your app. In other words, it is a URL unknown to the system.…