Questions tagged as 'laravel-5'

0
answers

interar several foreach in laravel framework

I have this code which does work but I would like to know if you can join the foreach into one and how it would be, public function store(Request $request) { $cliens = $request->input('idclientes'); $link = $request->input('adj...
asked by 20.12.2018 / 19:38
0
answers

Someone knows Laravel Voyager

I have a problem that I can not solve, does anyone know of Laravel an ADMIN named Voyager? I have problems with relationships when editing form, which gives me an error and, as much as I've read in English, a lot of people do, but I can not f...
asked by 21.12.2018 / 21:53
0
answers

help with dynamic inputs in laravel 5.5

$(document).ready(function(){$(".alergia-boton").click(function(){ if($("#id_alergia_paciente").val().length <= 1){ return false } else{ let valor = $("#id_alergia_paciente").val(); let html = $('#formulario_registro').html()...
asked by 26.12.2018 / 21:30
0
answers

When requesting a photo look in a special folder

You see, I have this form, which is used to request a photo: @extends('layouts.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8">...
asked by 17.12.2018 / 13:05
1
answer

Query sql to eloquen laravel 5.5

Again with my new questions, does anyone know how I can translate this query to eloquent? SELECT COUNT(nombre), usuario_ad FROM usuarios GROUP BY usuario_ad ORDER BY COUNT(nombre) desc;     
asked by 16.12.2018 / 22:12
0
answers

Problem with redirecting the login when the Laravel 5.5 session expires

I have a Middleware in my laravel project: <?php namespace Illuminate\Auth\Middleware; use Closure; use Illuminate\Auth\AuthenticationException; use Illuminate\Contracts\Auth\Factory as Auth; class Authenticate { /** * The authe...
asked by 21.12.2018 / 15:03
1
answer

Simulate event click JavaScript for laravel

I have a capture form, my problem is that when I want to see or edit some options I have them hidden if the user clicks on the radio activates other radios or text fields this works perfectly for me. My question is how do I simulate the click...
asked by 21.12.2018 / 16:53
1
answer

Problem return in function laravel 5.5

until now I have managed to count the children of each parent, that is to say, with the following method I achieve the following result. public function reportes(Request $request) { $request->user()->authorizeRoles...
asked by 15.12.2018 / 23:46
1
answer

doubt foreach controller laravel 5.5

I have the need to apply a loop in a controller, but I do not know if it is appropriate to do so public function reportes(Request $request) { $reporuser=usuarios::pluck('usuario_ad', 'user_id')->unique();...
asked by 13.12.2018 / 02:27
1
answer

That a Combobox memorizes the previous value

You see, I'm using combobox for the first time in a Laravel form. I have this model: Schema::create('fotos', function(Blueprint $table){ $table->increments('id'); $table->string('foto'); $table->string('...
asked by 12.12.2018 / 14:05