Posts by Paulo Sakamoto • 422 points
17 posts
-
1
votes2
answers455
viewsA: Inquiry Manually Transaction Secure Pay Checkout
Friend, I looked at the repository you mentioned, there are 2 classes with the same name called "Pagseguro": laravel\pagseguro\Platform\Laravel5\Pagseguro laravel\pagseguro\Facades\Pagseguro And…
-
2
votes1
answer58
viewsA: Error while running Migration
Friend, very simple to solve. carteiras.id tem sinal carteira_cliente.carteira_id não tem sinal (unsigned) Both must be equal. Responding to the comment of the friend Thalles Rangel, in more detail.…
-
0
votes2
answers321
viewsA: How to recover information from Laravel URL?
Friend, see in the documentation Laravel: Passing Data To Views Just pass an array in the second argument in the call from view. Below is an example of how to implement within your code. # Minha…
-
1
votes1
answer189
viewsA: Problem with Get in jquery
Friend, First, change the ajax option from "type: 'post'" to "method: 'POST'", as it is in the official documentation of jQuery $.ajax: $.ajax({ method: 'POST', url: 'matriz/mostra_select.php',…
-
4
votes1
answer191
viewsA: Modularize only Views of Laravel
Friend, I believe what you are looking for is "namespaces" in the views. I’ll show you two ways to do it (and probably there are other ways). Option 1: app/Providers/Appserviceprovider.php /** *…
-
2
votes1
answer239
viewsA: Error Defining Headers-Authorization in Data Return in Axios
Friend, I believe window.location.replace may be generating a new request. If you’re using Chrome, check the developer tools tab Network. I believe the right thing in this case is to store locally…
-
0
votes1
answer256
viewsA: Crud with Eloquent Laravel
Buddy, it’s pretty simple, it’s 2 CRUDS. You can do it 3 ways: $ccr = crud_consignado_registro::create([ 'produto' => $request->input('form_produto'), 'datareg' =>…
-
0
votes2
answers128
viewsA: Passing parameter in Mysql LIMIT
Friend, from what I understand you want 300 paginated records of 20 in 20 right? If so, you can normally return the 300 records with SQL. SELECT * FROM sistema LIMIT 300; And then break into parts…
-
0
votes1
answer139
viewsA: Read JS file before PHP
The Event.preventDevault() works perfectly. I recommend that in addition to validating on the front end, also validate on the back end. For educational purposes only, below is an implementation very…
-
0
votes1
answer637
viewsA: Add numbers from multiple Strings in PHP
Hello, You can make the sum as follows. <?php $a = '66'; $b = '5'; $soma = $a + $b; echo $soma; //exibe 71 ?> Now, if you intend to add decimal numbers, the story is different. I recommend in…
-
-1
votes1
answer99
viewsA: Do not save data with Mysql
Not a solution but a hint: in the connection file (probably /include/config.php), set the PDO to trigger exceptions. These exceptions will include important information, such as why the data is not…
-
3
votes2
answers52
viewsA: How to place variable concatenated inside a <a>?
Easy. <nav> <ul> <li> <?php echo '<a href="?p=ultimasnoticias&pagina='.$i.'">'.$i.'</a>'; ?> </li> Another option would be: <nav> <ul>…
-
1
votes1
answer1422
viewsA: Failed to open stream: No such file or directory in. Localhost x Locaweb
Fábio, the server does not lie, so if it says that there is no file, then probably this file does not exist. Your application index is probably located in the following folder on the Locaweb server:…
-
0
votes1
answer126
viewsA: Flash Data Post
Beast, according to Codeigniter documentation 3.1.9. Codeigniter Supports "flashdata", or Session data that will only be available for the next request, and is then Automatically cleared. That is,…
-
2
votes2
answers82
viewsA: Doubt about attributes and POO methods in PHP
From what I understand, the Shopping class expects an object from the User class, which must have a print method, and a collection of objects from the Product class, which must also have a print…
-
2
votes1
answer39
viewsA: Paging system not working - SERVER SIDE
Fera, I think we’re missing the querystring "p" in the pagination links. <?php $pdo = new PDO('mysql:host=localhost;dbname=publicacoes', 'root', ''); $seleciona_2 = $pdo->prepare("SELECT *…
-
3
votes1
answer2034
viewsA: Place error message in Laravel 5.6 view
Beast, the ideal is for you to do a validation before persisting the data. In Laravel it’s very simple, you can create a custom request or validate in the controller itself.…