Questions tagged as 'php'

1
answer

Menu, NAV Bootstrap dynamic submenus with PHP PDO Mysql

Good evening. I need to put together a dynamic, three-table menu that needs to be interconnected, but I'm lost. Here's a part of the organization chart below: Atthemoment,Ihavethefollowingcode:<liclass="dropdown"> <a href="#" cl...
asked by 26.09.2017 / 03:46
0
answers

Database with Municipalities, City, Neighborhoods [closed]

Does anyone know where I can get a database with *States * Counties * City * Neighborhoods in Brazil ?     
asked by 18.02.2018 / 03:25
1
answer

Validate CPF with Ajax and then submit the form

Good Night, Guys. I'm in need of help, I'm trying to validate and then submit the form, what I basically need is: When the user enters the CPF in the form, I want to do a check in the database, if cpf is not registered, the form is sent, otherwi...
asked by 11.02.2018 / 00:45
0
answers

What is the difference between Guard () and Middleware ()?

I've been noticing that both do basically the same thing ... I may have misunderstood, but what would be the difference between the two in Laravel?     
asked by 03.09.2017 / 22:06
1
answer

PHP: Interface type attribute

I am doing a study of Project Patterns. My first pattern is Strategy, where I have an abstract class that has two attributes that should instantiate a class that implements a given interface. The interfaces: interface FlyBehavior { publ...
asked by 07.09.2017 / 17:53
2
answers

How to implement a validation rule in Laravel?

I would like to know how to validate a rule in the Auth form. In this case, it is a CPF rule. Validation rules and error messages I already have, but I do not know how to implement it in the framework. Should I put the rules directly in...
asked by 08.09.2017 / 22:05
0
answers

Ignore registration when MySql / PHP information is missing

I have a PHP registration form in the MySQL database. After completing the form , the user is redirected to the page cad.php where he says that the registration was successful and in 3 seconds it is redirected to login page. The pro...
asked by 08.09.2017 / 22:25
2
answers

DomPDF API for PDF generation in PHP

I use the software laragon that already comes with laravel and composer integrated to the project, I executed the line: Note: I did not bother with good practice yet, I want to make it work first composer require barryvdh/laravel-dompdf...
asked by 10.09.2017 / 14:14
1
answer

Function filling only one line

I created a function so that as the user enters a client number, the fancy name of the client is filled in, but since this data comes inside a table and I use array to capture ( fazer insert e update ) in that data, all lines fill in inste...
asked by 01.11.2017 / 18:17
0
answers

Send Hash in the e-mail and confirm on the form

I would like to make a system that works like this: For the student to confirm the proof of the test, he would have to receive a hash code in his email. If he did not know the code, he would have to put the code of the test and the secret answer...
asked by 31.10.2017 / 21:28