Questions tagged as 'laravel'

1
answer

how to do a search engine in laravel with related tables

hi good morning community today I would like to ask you how to do a scope in Laravel but this is related to other tables, here in the example I'm looking directly only the id of the installer and I need to look for it through the name but when I...
asked by 28.11.2018 / 15:41
1
answer

I can not login with laravel I am using 5.4

Can you help me? I do not know which one I'm wrong in, I do not know what else to do, I've tried everything. This is my code: this is my driver : <?php namespace Inventario\Http\Controllers; use Illuminate\Http\Request; use Inventario...
asked by 22.08.2018 / 23:59
1
answer

Receive data from a loop in a controller method in laravel view

I have a method in the controller that inserts a table, and I want the bar to increase for each insert, but this loop is in the controller. Is there any way to do that? //codigo javascript $.ajax( { type: 'get', url: "{{...
asked by 21.08.2018 / 19:54
1
answer

How to validate values within an array with Validator?

I have the following javascript: arreglos_grados fix, which implements it in the following way: arreglos_grados = [] but I would like to validate with the Validator of Laravel 5.5 if a field that I am inserting in the...
asked by 13.08.2018 / 16:27
1
answer

Problem when paging data from a DateRangePicker

I have a daterangepicker: $( function() { $( 'input[name="datefilter"]').daterangepicker({ changeMonth: true, autoUpdateInput: false, showButtonPanel: true, dateFormat: 'mm/dd/yyyy', numberOfMonths: 2, regional: 'es',...
asked by 16.08.2018 / 16:42
1
answer

Consultation in field of the same Laravel table 5.5

I'm working the Laravel 5.5. I have a table called servers, in this table I insert both physical and virtual servers, and identify them through the following field. {!! Form::mySelect('id_uso', 'Uso', [0 => 'Escoge una opción'] + App\Uso...
asked by 16.08.2018 / 16:51
1
answer

where in laravel with with

How can I use where to filter in queries with that relate multiple tables. $a = App\A::with(['bs', 'bs.cs', 'bs.cs.ds'])->get(); how can I make 'bs.cs.ds' attributeX = 40 and 'bs.cs' attributeY = true     
asked by 29.06.2018 / 20:53
2
answers

SQL query in Laravel

How can I pass the following query in Laravel 5.4 SELECT CONCAT( TRIM(SUBSTRING(NombreCliente,1,1)), TRIM(SUBSTRING(NombreCliente, locate( ' ',NombreCliente), 2) ) )INICIALES FROM 'cliente'     
asked by 14.06.2018 / 22:49
1
answer

Use of group_concat with eagger loading in Laravel

   I have to return in a table in HTML, the name of the user and the   names of posts; however, I have registered more than one post   user; for which I require to use group_concat() for   put them in a single cell; I'm trying it this way...
asked by 26.08.2018 / 02:38
1
answer

create my table with "php artisan migrate" and then "php artisan make: auth" in the database I created the table

As you can see, I created the "user" table in the appropriate singular and I want it to stay that way and in this way do all the CRUD. but laravel has a convention. that is, I would like to keep my table in the singular, the model in the same wa...
asked by 24.08.2018 / 15:21