Questions tagged as 'laravel'

0
answers

How do I make a check box get "checked" when I enter values in 2 fields dynamically?

How do I make checkboxes tick when the user enters values in both fields? <td class="col-xs-2 col-sm-2 col-md-2 col-lg-2" ><input type="number" max="20" min="0" size="1" maxlength="2" name="<?php echo 'scorea'.$n; ?>" value="{{...
asked by 12.10.2017 / 03:22
0
answers

Difficulty to organize / structure controller in Laravel

I'm having trouble structuring my controller FileController . Main points of difficulty: Select which repeats in different methods I'm restricting the search for the logged in user ID, but would it be appropriate to use policy for this pu...
asked by 05.10.2017 / 15:41
0
answers

Authentication and Sweet Alert - Laravel

Someone could help me, I have a tremendous doubt, I have already researched so much and I have not found the solution. The scenario is as follows. I created a basic project with auth through php artisan make: auth, I installed and implemented th...
asked by 06.10.2017 / 05:05
2
answers

Paging with the twbsPagination plugin giving problem

Well I did a paging with the twbsPagination plugin, it works perfectly but it does not list the amount of elements per page. What have I done wrong? I wanted you to list 4 elements per page. Look at the code: Plugin LINK: link CODE: /...
asked by 05.10.2017 / 22:15
1
answer

What is the relationship problem in these tables?

I am using Laravel and would like to make a relationship from the table of municipios that contains estado_id . The estado_id will be related to the estado_id of the table of estados . Soon after ru...
asked by 02.10.2017 / 20:37
1
answer

How to create ordering with multilevel relationship in laravel 5.4?

I've done a lot of research to find a solution, but I've only found a few libraries that sort through only one level. $anuncios = Anuncio::with(['veiculo' => function($q){ $q->orderBy('nome', 'asc'); }]); This way you are...
asked by 04.10.2017 / 19:30
1
answer

Transform Inner Join Join to Join Laravel

I am updating a system that is developed in pure PHP and I am putting it in Laravel, however, I had never done more than one join and with "AND" parameters so I would like to be helped, how can I put this SELECT in the controller Laravel? <...
asked by 13.10.2017 / 12:00
1
answer

Call stored procedure on laravel using SQL Server with OUTPUT

I'm trying to call a stored procedure by Laravel 5.5 but I can not. I'm using SQL Server. Follow the stored procedure: declare @CodigoRet int exec Generator 'LancaContaContabil', @Codigo = @CodigoRet output Select @CodigoRet I research...
asked by 27.09.2017 / 15:26
0
answers

Laravel, validator with multiple fields and {{old}}

I have this code with $ n form fields. I am not able to use the validator; { public function salvar() { $n =Request::input('campos'); for($i=1; $i < $n; $i++){ $pontosa =Request::input('pontosa'.$i); $pontosb =Requ...
asked by 27.09.2017 / 14:57
0
answers

Table lines do not break at the end of the page - PDF & Laravel

I have a table with a lot of rows, and when I generate the PDF of that HTML page with DomPDF it does not jump to the next page. I tried some tutorials here, but it did not work very well. Here's the problem image: <!DOCTYPE html>...
asked by 27.09.2017 / 00:34