Questions tagged as 'laravel'

2
answers

Two columns with the same name

I have a problem with the query I'm doing, when joining two tables with a join I do not see a column because they have the same name. I tried to use a select as I normally do in sql but it still does not appear. $user = DB::table('app_registro...
asked by 19.02.2018 / 14:29
3
answers

Use the OR clause (||) in Eloquent queries in Laravel

Greetings community I have a doubt and I do not know how it is resolved ... How well we know if I wanted to make a query that had an OR clause in SQl would be something like this: Select * tabla where campoA='1' || campoA='2' The issue i...
asked by 06.08.2018 / 22:17
1
answer

Open a view from another

In my login.blade.php view I have: <div class="container" id="forgot"> <a href="" id="text-forgot">RECUPERA TU CONTRASEÑA</a> </div> How do I make that from that href open my other view mail.blade.php...
asked by 26.02.2018 / 00:35
2
answers

Remember me in Laravel

I want your guidance, can someone explain to me what is the usefulness of Remember me in Laravel? The code I have works, saves the token on BD and everything, but I've tried and I have not seen any use. Could you please explain what is...
asked by 04.10.2018 / 21:50
2
answers

How to get the text of an HTML tag with simple_html_dom.php

I'm trying to get the text that contains certain tags within the HTML on a page, I'm using html_simple_dom.php that I thought was good for this. Without more I leave an example of my problem. This is the function in php <?php requir...
asked by 09.01.2018 / 04:34
2
answers

Laravel Consultation

Hi, I have a query in Laravel 5.5 that brings me what I need with the related data of 2 tables. My query is as follows: $facturas = ProgramacionPagos::select('*') ->where([ ['pagorealizado' , '0'], ['autorizado_c...
asked by 10.01.2018 / 19:20
1
answer

Laravel delete in CRUD

I am creating a CRUD of products. In the index I have the grid with the registers. In each record there are two buttons (edit and delete). Editing works fine for me, but not editing. I need to press that button to show me a view (delete.blade.ph...
asked by 15.02.2018 / 12:40
1
answer

How can I use multiple connections in laravel models?

Guiding me on this answer , I try to make multiple connections in the following way: 'connections' => [ 'pgsql' => [ 'driver' => 'pgsql', 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB...
asked by 18.10.2017 / 06:55
2
answers

SQLSTATE [42S22]: Column not found: 1054 Unknown column LARAVEL 5.4

I can not access the relationship with with from the parent table to the daughter, she says:    SQLSTATE [42S22]: Column not found: 1054 Unknown column   'subComidas.comida_id' in 'where clause' (SQL: select * from    subComidas where...
asked by 19.10.2017 / 06:00
2
answers

How to show the selected users

I am trying to show the selected users by means of a multiple selection , but only the last selected value is returned to me. This is my code where I send the selected data in the view: <div class="col-xs-4"> <div class="...
asked by 26.06.2017 / 10:10