Questions tagged as 'laravel'

1
answer

add select field dynamically (laravel project)

I'm creating a form from a repository and I have several fields like that of modality. What I do not know how to do is create a function so that when a person clicks the + button next to the select, it creates on the screen another select field...
asked by 24.04.2018 / 01:26
1
answer

How can I make a loop to insert data into a table in my form and then send it to my bank?

// Part of the Form to which I want to apply the loop <div class="form-row"> <div class="form-group col-md-6"> <label>Curso</label> <input name="cursolivre" id="cursolivre"...
asked by 28.04.2018 / 20:21
1
answer

How to use nested loading nested in Laravel 5.4 correctly? my related tables return "null"

I have the following search in my application: $results = Profile::with('profileCategories.categories', 'informations')->where('ativo', '=', "1")->where('nome', 'like', '%' . $request->search . '%')->orWhere('sobre', 'like', '%...
asked by 21.04.2018 / 03:25
1
answer

eager loading and custom queries

This question is a follow up this and this . But I'll try to make them independent. I have the following tables, weathers : +--------+-------+---------+ | id | temp | id_freg | +--------+-------+---------+ | 337 | 12.36 |...
asked by 19.04.2018 / 19:46
1
answer

Error trying to insert form in laravel with authenticated user (foreign key to another table)

I am trying to insert the data of a form of a Condominium class with the user already logged in and authenticated, the user_id is foreign key to the Condominium table, in my understanding the store method should already bring the user_id in the...
asked by 19.04.2018 / 17:22
0
answers

How to make a Like button with counter using laravel 5.3?

I'm having trouble running the Counter for the likes and dislikes. The problem is that you are not saving the numbers in the bank. For a better understanding, here are the details: Layout NewsController.phppublicfunctionAdicionarGost...
asked by 17.04.2018 / 00:57
0
answers

Error QueryException could not find driver - Laravel - pgsql

This error appears and I can not resolve it. I have already uncommented the php.ini lines. I did everything ... (using pgsql)        
asked by 12.04.2018 / 14:41
2
answers

In AJAX only the "Fail" is executed, how to solve this problem?

Contextualization Home When the user presses the Authorize Documentation button, the Authorization mode will be prompted to select the user and enter the password, as shown in the following image. BusinessruleHomeThedefaultstatusofthedo...
asked by 12.04.2018 / 21:44
1
answer

Hide and show according to button ID

Well, I have a problem with Jquery, JS I have a set of buttons with the initials of each name, I would like to make them appear with their divs when clicking and when I click on another, the previous one disappears and only the other appears, I...
asked by 11.04.2018 / 21:14
0
answers

Translate AuthServiceProvider from Lumen to Laravel

I have already researched the entire documentation but can find no way to make this AuthServiceProvider work in Laravel 5.6 in the same way it works in Lumen 5.4. Auth::viaRequest('api', function ($request) { if (($userId = $request-...
asked by 20.04.2018 / 02:04