Posts by Ryan Lemos • 323 points
11 posts
-
3
votes2
answers357
viewsA: What is the difference between override and :base in C#
As the friend Carltee answered. The modifier override serves to modify or extend a function. With this you may or may not change parent class behaviors (or base class). To use the override in the…
c#answered Ryan Lemos 323 -
2
votes1
answer80
viewsA: Send many requests with Xios without the code waiting for the answer of previous requests
In Javascript, when using asynchronous functions with async/await, execution of the function for and waiting (await) the resolution of Promise, in the case of the API. That is, the code stands…
-
1
votes1
answer402
viewsA: Laravel - Eloquent Many to Many
In the exercise model: public function musculaturas() { return $this->belongsToMany("App\Http\Models\Musculatura", "exercicio_musculatura", "exercicio_id", "musculatura_id"); } In the Model of…
-
1
votes1
answer112
viewsA: Why am I not receiving the requisition data?
I got 'resolver' the problem. Searching on, this seems to be a bug, as reported by users on github. To 'solve', I had to change the sending method to POST, and add a field _method in the request…
-
1
votes1
answer112
viewsQ: Why am I not receiving the requisition data?
I have an Angular frontend application consuming an Laravel API. I’ve never had problems like this in other cases. But when I try to update a record, it just doesn’t send the data to Laravel. But if…
-
1
votes2
answers643
viewsA: Create and edit data from a table with Laravel relationship
As friend Jedson Melo said you can use the Eloquent which assists in the process of creating relationships in databases. According to the documentation models can relate to others by abstracting the…
-
8
votes3
answers5954
viewsA: How to upload to Laravel 5.7
Come on, what I’ll explain here you can find in the specializing. First, you have to define where you want to save your files, they can be in the cloud, locally. You define this through the disks in…
-
1
votes2
answers585
viewsA: Display results of Join in view with Laravel
If the product table and category table have a field called name, you must create a alias or nickname for one of the fields, so it would look like this: $products =…
-
0
votes1
answer45
viewsA: Form registration
I’ve corrected your code and we’ll go in pieces. Starting in HTML there are some errors, first has a tag form being closed but without being opened previously. Exactly where shown below:…
phpanswered Ryan Lemos 323 -
1
votes1
answer86
viewsA: How to pick the difference in time between two dates using the Carbon plugin, where it shows me whether it is positive or negative
Looking at the Carbon documentation, present in:documentation in the 'Difference' tab, if you pass as the second parameter of the diffInHours function the false value returns the relative value.…
-
0
votes1
answer38
viewsQ: Array of objects in php, objects being overwritten, why?
I created a helper to organize the menus returned from the database in a way that is similar to a return of a native method of the framework I am using. The code snippet containing the error is…