Questions tagged as 'laravel'

2
answers

Receive Array in Controller Laravel

When I pick up the form values in the controller, I skip the null and I do not know why <body> <form action="FormTablaJuego" method="POST"> {!! csrf_field(); !!} @for($i=0;$i<11;$i++)...
asked by 09.11.2017 / 10:22
1
answer

SEARCH IN INDIVIDUAL COLUMNS - LARAVEL

I want to do a search in several columns. Something like that. But I do not know how to do it in Laravel since it is managed through MVC. The DATATABLES page suggests that you enter this code. $(document).ready(function() { // Setu...
asked by 09.11.2017 / 20:03
4
answers

Use array_diff with Laravel

I'm trying to use the function array_diff of PHP, the problem is that I try to do it with two variables that I have in my function. $var1 = Model::all(); $var2 = Model1::all(); // Trato de eliminar valores repetidos $var3 = array_diff(...
asked by 05.11.2017 / 16:21
1
answer

help with matrix in laravel 5.4

Hi, I have the following error with laravel 5.4 when I create an array to add elements and display them in a table this is the code: When I click on add it tells me the following: I do everything with ajax but it does not let me crea...
asked by 04.11.2017 / 15:29
1
answer

Problem with return back () - withInput (); Laravel 5.2

I am trying to return backwards, with the input values preloaded, although if it shows the warning messages that I am passing, the inputs are not loading with the passed values, but they are empty. Here the codes. Controller: public functio...
asked by 29.11.2017 / 18:39
2
answers

Bring data through a Laravel select

I am doing a project where, by means of a select I choose a developer and I bring the data from the database of said example developer (I select developer Daniel and bring me his specialty and hours) I tried to do it but the only thing I...
asked by 09.11.2017 / 05:07
2
answers

How to traverse an array within another indexed array

I try to save records of indexed buildings in my array since I can register 1 or more buildings in a single form, for each building I want to store name_building, number_calls, and prefix_calls. My code is as follows $edificios = array();...
asked by 27.10.2017 / 22:46
1
answer

Maintain the value of the variable when opening a modal

I have a table in which to each row I pass some variables through a foreach. And when I give 'Delete' a modal opens, that has the first value of the table, it does not matter if I click on the delete button of the row with ID 5, that I...
asked by 18.10.2017 / 16:40
2
answers

Change column name ID - Auth Laravel 5.5

I'm doing a login with laravel, I had a table already created. The problem is that in my table the id has another name and when trying to login it shows me this error. "Undefined index: id" This is User.php namespace App; use Illuminate...
asked by 05.10.2017 / 23:14
1
answer

How to save image and several fields in the Laravel 5.2 database?

Good morning I want to save the brand, image and status in the database; I'm using    link When I click on save I get the following error, which can be the problem? Thanks for your input. This is my Route Route::resource('mar...
asked by 04.01.2018 / 14:42