Questions tagged as 'laravel'

3
answers

Doubts about method EDIT, UPDATE and routes

I'm working with the default auth of laravel, the question I have is that to edit the profile, is it necessary to pass the user's $ id in the edit form? this $ id is captured by the EDIT method of the UserController and then by the UPDATE method...
asked by 19.03.2018 / 20:31
1
answer

How to send a different email for a different form in laravel?

I need to send an email for one form and another email for another form ie I have two forms in the same view, The first form is called user has the following fields: name mail subject comment When the user sends the message, an e-m...
asked by 11.06.2018 / 00:51
2
answers

how to pass data to the controller from laravel view

I have a view in blade , with a table, that through a method, loads me with a foreach all the data of the database, which are requests, those requests have to be approved (changing the field of the database accepted, to 1) or denied...
asked by 30.01.2018 / 13:53
1
answer

What tool / s can I use to download a graphic if I use chart.js

Hello very good companions, more than anything I use laravel 5.6 and Bootstrap 3.3.7 along with chart.js (ultima version) and good tool is good for me that same graph that shows me pass it to pdf and then download it, anythi...
asked by 04.07.2018 / 02:10
1
answer

Access object element returned to view by laravel blade

I'm working with blade laravel, I need to access the internal elements of an array that I return to my view from the controller, this is the result when I make a dd [! [Arrangement] [1]] [1]     
asked by 20.02.2018 / 22:04
1
answer

Extract table data from one bbdd to another

I need to extract some data from some tables and be able to save them in other tables within a different database. And this must happen every so often to update the records of the destination table (it's the one I should use). The truth is th...
asked by 07.03.2018 / 06:16
1
answer

Carry out two consultations in the same method in Laravel

In an application made with Laravel, I have the following methods: public function scopeGetCountAndSumCotizacionesByVendedor($query, $ano, $mes) { return $query->select('trabajada_por', DB::raw('COUNT("trabajada_por") as cant_ve...
asked by 06.01.2018 / 03:42
1
answer

Using timestamp?

When a new migration is created with laravel, a timestamps is created by default in all the tables, and it stores a value in the column created_at and updated_at, these are filled automatically when a new record is stored, I need to obtain the v...
asked by 11.12.2017 / 22:31
1
answer

Filter elements of an array in php

my question is how to filter elements of an array, in this case I want the notes% co_from% to 6 to be filtered, my array is simple: array:7 [▼ 0 => 1 1 => 2 2 => 4 3 => 10 4 => 7 5 => 5 6 => 10 ] Once filt...
asked by 12.12.2017 / 02:03
2
answers

Prevent saving the form twice?

As I prevent a record from being saved or updated, it can no longer be modified, because when you go back with the browser you can modify the information. For the moment, I have this: if($deposito = Deposito::lastest() ->where('create',...
asked by 14.12.2017 / 18:54