Posts by Paulo Martins • 390 points
16 posts
-
0
votes0
answers14
viewsQ: Dusk with the --filter option returns "No tests executed!" - Laravel
I am with a project Laravel 8, I created a test with the command php Artisan make:testTwo, however when I try to run it with --filter returns me: Test code generated with make <?php namespace…
laravelasked Paulo Martins 390 -
1
votes4
answers1271
viewsA: Error in setting Route Orange 8?
On Laravel 8 changed some things on the route, you need to declare it on use web.php: use App\Http\Controllers\DashboardController; In this case the statement would be Route::get('/lista',…
-
7
votes4
answers310
viewsA: What is the MQTT protocol?
MQ Telemetry Transport (MQTT) MQT is currently the standard protocol for the internet of things. This becomes clear since it is designed for carrying and signing extremely light messages and with…
-
1
votes1
answer73
viewsA: Model Variable returns null and not the model class
The return is correct. Is returned null for the function Where() does not return the class itself, but rather an instance of Querybuilder. A way around this would be using local Scope recommend…
laravelanswered Paulo Martins 390 -
0
votes1
answer51
viewsA: how to make more than one file available for download with just one HTML button
I think the best solution in the case of a menu is to join the two images in one. Consider making a pdf. There is a solution that may not be as elegant, but as I already solved a similar problem so…
-
1
votes1
answer68
viewsQ: How to paginate an Laravel 7 array?
Is there any way simple to paginate an Array in Laravel? I have an array $calls what date a search makes the return of type: Until version 5 there was the method Paginator::make($atendimentos,…
laravelasked Paulo Martins 390 -
1
votes1
answer64
viewsA: Does programming logic change depending on the language?
Thinking logically doesn’t change whether you’re working in computing, engineering, mathematics or philosophy. However, seeing that you are a new user I think your question extends to the…
logicanswered Paulo Martins 390 -
2
votes2
answers474
viewsQ: Turn an image into a HTML5/CSS3 Submit button
I would like to turn an image into a button, but keeping the Submit property (send form to it) is possible? The code below demonstrates what I wanted to do: <form method="post"…
-
0
votes3
answers563
viewsA: Pass view data array to Laravel controller
I figured out how to send a array integer per parameter in a simple personal way. You need to use this syntax ['dataform'=>$dataform]<!--O primeiro é o nome que você quer dar para variável(ela…
-
-1
votes3
answers563
viewsQ: Pass view data array to Laravel controller
I’m trying to pass an array of mine view for a controller (it will generate a pdf) in Laravel. I know there’s a chance I could do it this way: <form class="form-horizontal" method="get"…
-
0
votes1
answer65
viewsA: Take values from a vector and use in a function
You need to pass as a parameter in the function. Example void funcaoVetor(int vetor[]) { //código da função aqui } //chamada da função funcaoVetor(vetor[50]); However there is a difference in the…
-
0
votes1
answer37
viewsA: Doubt written in code
The switch is a conditional structure, just like the if and Else. All it does is test the displayed code and return a value. If you want your code to run several times you need to run a repeat…
canswered Paulo Martins 390 -
0
votes1
answer27
viewsA: Template loads only in one view
If you want to load two views simultaneously you need to create them as a different name @Section('content') and @Section('content1'), then you can add 2 includes. If you want to load another one…
-
0
votes2
answers42
viewsA: Laravel: Missing field error in SQL even passing field
Staff received and helped and came to the following conclusion: On the model was with dat_document and dat_reply within the protected $Dates, I removed the field and put in the fillable and took:…
laravelanswered Paulo Martins 390 -
0
votes2
answers42
viewsQ: Laravel: Missing field error in SQL even passing field
I am trying to do an update on Laravel with: The second line since code was only added to make sure I could pass the date, as it is already being passed through the form, as I could check using…
laravelasked Paulo Martins 390 -
-1
votes2
answers121
viewsQ: How to access foreign key table in Laravel to return in a View
I am working on the project in the Flat and I can not solve the following problem: I have a Call List that’s being shown like this: I wanted to put the name in place of the code in the columns.…
laravelasked Paulo Martins 390