Questions tagged as 'laravel-blade'

1
answer

laravel 5.5, multiple drivers in one or more views?

Greetings wherever you are on that side of the receiver, I have weeks learning about this giant that is laravel (5.5), I have a system to develop during my degree work, but I have a big failure, I can not find or not how to pass the methods of t...
asked by 06.10.2018 / 00:43
2
answers

@foreach in laravel that goes from 2 objects to 2 objects?

I am building a blog in laravel but I found a problem in my blog template, from the file of routes I send by compact the variable post: Route::get('/blog', function () { $posts = App\Post::latest('published_at')->get(); return view(...
asked by 12.08.2018 / 06:07
3
answers

How to filter columns from a table with checkbox in Laravel

I have a table that shows some data from the database in MYSQL which has a checkbox that acts as a filter which, should validate that the city of the user connected in the session is equal to the city of some registry of my table complexes , a...
asked by 24.12.2018 / 14:41
2
answers

How to send two data with Laravel lists?

I want to send 2 values to the view with lists of laravel admin.horarios.create The question is this, I have this code: public function create() { $docente = Docente::orderBy('nombre','ASC') ->...
asked by 02.12.2016 / 04:56
1
answer

Get the database value in an html select?

How can this be done that is shown in the value but with a select that brings the values of the database Like the following example: <input type="text" name="measure" class="form-control{{ $errors->has('measure') ? ' is-inva...
asked by 21.08.2018 / 22:25
2
answers

Laravel, Form is sent double

Good morning, I'm starting with laravel and I've created a login / registration system using Auth but I have a problem, I try to put the login and registration form on the same page and when I give "Logear" they send both the data of the first f...
asked by 29.07.2017 / 18:22
1
answer

Error creating a new related record

I have a table related to other PRODUCTS AND MARKS, what happens is that when I create brands and products everything is going well. The problem is when I delete a brand and create another one, and when creating a new product with a role, it sen...
asked by 28.01.2017 / 17:03
1
answer

redirect view with @if in laravel

I am trying to redirect to a view in laravel if the user fulfills a membership (membership = stage), but this only returns text to me instead of the view, my code is as follows: @if (Auth::check()) @if(Auth::user()->etapa == 1) @retur...
asked by 14.06.2018 / 04:02
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
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