Questions tagged as 'laravel'

2
answers

Delete in laravel using id

I have a very simple method, that the only thing that it does is take the id from a form, to erase the insertion, the issue is that it does not work for me: Vista: I have a form, in which you select the id of the vacation and I pass it to the...
asked by 23.02.2018 / 08:53
1
answer

Why is it saved with brackets in my bd when I check the text of a combobox in laravel?

I try to get the text of a combobox from the controller so I make a query to the bd with the value of the combobox obtained but when I save it it does it with the following format ["Plant I"] (I do not know why it keeps me with bracket and quote...
asked by 18.12.2017 / 12:29
1
answer

separate array laravel

I receive data from a view in this way, is there a way to separate them and make it like the example below? array:6 [▼ "id_producto" => array:1 [▼ "insumo" => "7" ] "precio" => array:1 [▼...
asked by 01.12.2017 / 18:05
1
answer

Jquery in laravel, it does not work

I'm trying to link Jquery to my laravel, I'm just learning now and I have this code trzoo for an easy index: <meta charset="UTF-8"> <title>@yield('title', 'Default') |Panel de Administración</title> <link rel="stylesheet"...
asked by 22.08.2017 / 11:29
1
answer

Know if there are related elements in a [closed] table

I am using one-to-many relationships in the models and I wanted to know how to be sure there are no related items in the table. For example, how can I find that the song record with id 3 is not within the musical genre table?     
asked by 27.06.2017 / 15:07
2
answers

Input type number teased

I come to you with a slightly easy question to see who can answer me. I have a normal input type number with its two arrows to increase and to decrease limited to a minimum of 1 and a maximum of one hundred; <input type="n...
asked by 10.03.2017 / 05:44
1
answer

Laravel 5.4: Do not load the routes in virtualhost (Error 404)

I have almost-successfully configured a virtualhost using Apache to work with Laravel 5.4 (initially I was working with Homestead but "x" reasons I am now working locally). The problem is that even if you manage to load the initial page, I ca...
asked by 16.08.2017 / 23:08
1
answer

Problem with dates in LARAVEL

I try to change the format of a date created by laravel with timestamps () that saves them in the format 2000-01-01 00:00:00. I have tried in the view (blade template) within the value of an input type date: date('y-m-d', strtotime($user-&g...
asked by 18.12.2018 / 15:21
3
answers

How is the laravel timestamp used?

What happens is that you create a new product form and I want it to be the same as the registration form delivered by laravel, that is, when you insert the product, the created_at and updated_at are automatically filled (already create the colum...
asked by 17.10.2018 / 19:20
1
answer

Do not draw google.map.Circle in google.visualization.Map

I am developing a web application in laravel and I must visualize a map with markers, circles, etc. I also use google charts and I have some tables. When I click on a table I select the marker whose position equals the position I have saved in t...
asked by 13.09.2018 / 07:19