Questions tagged as 'laravel-blade'

2
answers

Assign an Array to an input

I have to edit the details of a referral guide for which I have the following code that loads the values of the detail table <tbody> @foreach($detalles as $det) <tr> <input type="hidden" name=...
asked by 16.06.2018 / 16:08
0
answers

how to send an array that has a key x and that key contains another array with the responses of an input

hi all my problem is the following, I have these inputs where I send user information especially this is where he sent the information <input type="{{$tag->tag_type}}" class="form-control" value="{{$option->option_value}}" name="t...
asked by 14.06.2018 / 22:53
0
answers

Operator or in blade php

I'm working on a blade template in laravel and I want to hide the menu depending on the role of the user. But I do not accept the operator or, in blade this way: @if(! auth()->user()->is_magaly || ! auth()->user()->is_students)...
asked by 17.05.2018 / 17:43
1
answer

Problems sending items to my view

I'm having problems sending collections to my blade view. in my controller I have implemented the index function in this way: public function index(Request $request) { $productos = Producto::latest() ->take(5...
asked by 13.04.2018 / 16:48
1
answer

How to apply a url using Blade Laravel in javascript

I am using typehead mixed with prefecth for the auto completion of a field called rut, at the moment of requesting information from a JSON file if I use the route calling it in the following way: prefetch: '/ providers / json' It does no...
asked by 09.04.2018 / 22:47
1
answer

Show values in a Select combo in the view

my problem is that I can not show the value of the user's gender that already has a value assigned, this I want to show it in the select combo of the profile view, the select combo only shows me the default values but not the value already assig...
asked by 21.03.2018 / 21:26
2
answers

problem when viewing an array on a Laravel blade table

Well thanks to the colleagues of the forum I managed to do the join to get the data in an array as I wanted, this is the controller's method: public function solicitudes() { $vacations = \DB::table('vacations') ->se...
asked by 27.12.2017 / 10:14
1
answer

Styles in view using Laravel 5.2

Thank you for taking your time. My problem is this, I am showing my records in a table from which the actions of eliminating and modifying are split, both buttons of each action work perfectly, the problem I have is that when I give Click on the...
asked by 09.12.2017 / 22:44
1
answer

Prevent a user from authenticating more than once in other laravel devices

I have an application in laravel 5.4 in which an authenticated user can not be logged in more than one computer at a time, how could this be done? I am new to laravel, I appreciate any help or recommendation.     
asked by 05.12.2017 / 18:35
1
answer

Call constant attributes of a class from laravel blade?

Hello, I have the next class namespace App\Repository\Constants\Models; class InstanceModelContant { const ALREADY_DEMO = "Usted ya posee un demo."; const ALREADY_INSTANCE = "Ya tiene un servidor con estas caracteristicas."; const...
asked by 25.10.2017 / 19:39