Questions tagged as 'laravel'

1
answer

I have 2 variables in my controller but only one pulls me

$ingreso=DB::table('INGRESO as i') ->join('PERSONA as p','i.ID_PER','=','p.ID_PER') ->join('DETALLE_INGRESO as di','i.ID_ING','=','di.ID_ING') ->select('i.ID_ING','i.FECHA_HORA','p.nombre','i.TIP_COMP'...
asked by 24.08.2018 / 17:17
1
answer

Download laravel image

I have the following link: <a href="http://www.codigos-qr.com/barcode/barcode.processor.php?encode=CODE128&bdata={{$row->code}}w&height=40&scale=2&showData=1&Genrate=" title="Generar Codigo" target="_blank">{{ $row...
asked by 16.06.2018 / 21:22
2
answers

Register a plan depending on the current date

I work at laravel, and I need to do the following if a plan is registered if the date of the bd is greater than the current date. I've tried it this way: $fechaFin = $buscar->fechaFinal; //obtenieno el dato de la base de datos and static...
asked by 11.06.2018 / 19:49
1
answer

capture data with a modal from a dynamic table

Good evening to those who read me, want to help me, I want to capture the values of a row of a table and display them in a modal aui I have the table that comes from the database ... <tbody id="myTable"> @foreach($act...
asked by 24.06.2018 / 03:41
1
answer

Error in laravel 5.6

I am trying to see the name and the id of the categories of the products and I am generating the following error.    "Trying to get property 'category_id' of non-object (View: C: \ Users \ RaFaE \ blog \ resources \ views \ admin \ article \...
asked by 28.06.2018 / 04:36
1
answer

How to send the result of two queries by AJAX in laravel

Good evening I'm using laravel 5.6 and I want to make a data request by ajax using an id and with this I get the result of two queries. My questions is how I can respond to the ajax request with the result of the consultations. These are my q...
asked by 09.05.2018 / 22:56
1
answer

Call to a member function setCookie () on null

Good afternoon, I am using Laravel 5.6 and I have just applied middleware to my routes, it does the filtering in the following way: public function handle($request, Closure $next) { $tipoUsuario=$this->auth->user()->id_role;...
asked by 17.05.2018 / 17:59
1
answer

adding an item to items by push before axios post does not send the item added

Good morning, thanks in advance for the help you could give me. I'm creating a page for issuing an invoice in laravel with vue and axios. Before sending the invoice to record, I must verify if the total value of the invoice makes you a winner, t...
asked by 21.07.2018 / 11:59
1
answer

Write an arrangement in word from laravel using php word?

I am using the php word library in my project with laravel, it works correctly, what I do is use a word template and add values using TemplateProcessor, the problem that I present is when I want to write a dynamic array in the word template, tha...
asked by 30.04.2018 / 17:44
1
answer

Error when passing data from a multiple select field to the BD LARAVEL

Well I get the data of a table from my BD and I send them to a select. When I want to save the data of the select to the database I get the error that the field matters has no value But when checking the data that is sent by post it turns...
asked by 11.07.2018 / 04:00