Questions tagged as 'laravel-5'

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
1
answer

How to add new methods

Good morning At the moment I am using a controller type route::resouce , as you well know this adds certain methods to facilitate the work, as index, create, edit, destroy . The problem that I present is that you add a custom meth...
asked by 06.10.2018 / 02:58
2
answers

I can not get images in Laravel

You see, I have a view that shows a list of plants. Before this, I show a picture of a fern with this code: <img src="helecho.jpg" style="width: 200px; height: 200px; border: 2px solid red"> I have placed the photo in the same directo...
asked by 14.02.2018 / 18:57
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
1
answer

create migrations automatically from an existing database in laravel 5.4

How can you create migrations from an existing database automatically in laravel 5.4? I found this link link but they are asking me not to be like that. That does not create other files for foreign keys and another for tables. Does anyon...
asked by 24.06.2017 / 16:18
1
answer

How could a search engine in laravel 5.1?

Good friends, the question is simple, I need to do a search engine in laravel but the way I'm doing it, complicates me a bit because I'm doing the following: currently in the controller I have this: public function index(Request $request) {...
asked by 16.07.2017 / 05:31
1
answer

Pass variable from the controller to several views in laravel

I have the following funcion edit in my controller public function edit($id){ $ficha= Data::findOrFail($id); return view('ficha.edit')->with('ficha', $ficha); } This sends the variable $ficha to 'ficha.edit'...
asked by 29.11.2017 / 20:54
1
answer

Query two different tables and show in the blade view?

Table 1 news Table 2 notes The following controller makes a query to the news table. The search engine makes the query with three different fields. The question is how to make the query from the table (notes) at the same time as the news t...
asked by 06.04.2018 / 22:37