Questions tagged as 'laravel'

1
answer

Differences between commenting with # and //

I'm doing a project in laravel and would like to know the appropriate use of commenting with 1. # O 2. // I appreciate your help     
asked by 11.10.2018 / 22:53
3
answers

How to tour a Collection in Laravel

This time I have a mental gap and I do not know what is escaping me .... I have the following collection, annex image: I have a model called Income and another called DetailInside, in which in the relations I have Income to Detail In...
asked by 15.07.2018 / 00:04
1
answer

Curiosity laravel form with fieldset

I have a little doubt that I would like to solve and the truth on the internet does not leave anything clear. I have a form (in this case where I fail to recover the password), which has all its divs and other necessary elements to validate the...
asked by 20.08.2018 / 16:38
2
answers

Duda laravel eloquent sql

I'm new to laravel and I have a couple of problems about eloquent . I have the following code. $usuario = DB::table('user') ->select('user.id','user.name', 'user.email') ->join('user_dep', 'user_dep.user_id', '=', 'user....
asked by 25.06.2018 / 08:21
1
answer

Send e-mail taking data from a Database?

Hello friends, I have a problem with only one line of code that no matter how hard I search, I did not find any solution. Use laravel: 5.6 Mysql-MariaDB I have this: And in the part of $message->$usuario->email that is to t...
asked by 22.06.2018 / 02:21
2
answers

Nested lists in Laravel 5.5

I'm working on laravel 5.5 I have these two lists: 1- The first is a list of operating systems {!! Form::mySelect('id_so', 'Sistema Operativo', App\SistemasOperativos::pluck('nombre', 'id')->toArray(), null, ['class'=>'chosen', 'pl...
asked by 22.08.2018 / 19:55
1
answer

call a function in the laravel login

I'm working with Laravel 5.5 and I want to call a function every time a user logs in and is authenticated in laravel, I've been searching and can not find anything. and the final question is Do you call a function in laravel when it is logged in...
asked by 13.04.2018 / 19:01
2
answers

How to pass data from one view to another with Vue and axios in Laravel

I'm working with Laravel and I have this link in view A <div id="app"> <a href="{{ route('ministries.index') }}">Enlace</a> </div> and I want to click on that link to direct it to view B and show me the results...
asked by 14.02.2018 / 03:37
1
answer

Laravel and the formatting of dates

Gentlemen I am making a query to a table with Eloquent ... and between the fields that I want to consult this one of date, as I do so that in full consultation to bring the date formatted? Ex: $consulta=Ejemplo::select('fecha')->find($id);...
asked by 20.02.2018 / 15:04
2
answers

Laravel 5 create Table and Self-Referenced model (self Referencing)

How do I create a table autor referenced and how do I do the relationship in the same model?: Example: Tengo una tabla: Categoria Campos: categoria_id, nombre, categoria_padre It translates that a category (parent) can have many...
asked by 16.02.2018 / 05:35