Posts by Nego Thales • 17 points
5 posts
-
1
votes3
answers1872
viewsQ: Create a Request validation in Laravel with the Unique rule
I created a request with the command: php Artisan make:request Nameserver And in the controller I’m calling him so: public function nomeDaFuncao(NomedoRequest $request) { } Only I need to use this…
-
0
votes1
answer256
viewsQ: Find element of the intermediate table using Laravel
I’m developing a system that has an N:N relationship situation and need to create a third table. The relationship is between Product and Coloured. inside the Product Model, I put this function:…
-
0
votes2
answers464
viewsA: How to Use Masks in Ajax
I managed to solve. I put a click event inside the element, which called a function: <input name="cpf" onclick="ajaxCPF()" type="text" class="form-control cpf-ajax"> And the function basically…
-
0
votes2
answers464
viewsQ: How to Use Masks in Ajax
I am developing an application and I am going through a difficulty when it comes to using Ajax, along with a plugin inputMask. I have some masks configured, but when it comes to using it in Ajax…
-
0
votes1
answer618
viewsQ: How to perform a Migration in Laravel, without excluding the other tables
I’m new to both Laravel and Stack, recently I’m building a system and in the process I forgot to put a Migration. Usually I put the remote php artisan migrate:refresh, however all the data that were…