Questions tagged as 'laravel-5'

1
answer

CRUD of users, add more edit and update routes

I currently have a CRUD for the users. I'm using the edit and update path to modify the name and email data, but I need another edit path and an update path to change the user's password. I want to work them separately. The question is...
asked by 13.04.2018 / 02:02
1
answer

Compare result query SQL Laravel with Int

I am programming in Laravel 5.5 and I need to compare a query with an integer to perform a verification. The code is as follows: $sum_=DB::table('eventos_tienen_trabajadores as ett') ->where('ett.id_trabajador', '=', $id) ->...
asked by 26.01.2018 / 05:28
1
answer

Laravel, how to run a different seeder to the DataBaseSeeder.php

I am trying to create a Seeder called users to be able to modulate the seeds for each different table and have the project better organized. The problem is that when I use the command: php artisan db:seed Only execute the "DatabaseSeeder.ph...
asked by 11.01.2018 / 23:42
2
answers

Go through an object with Vue2.js

My question is how do I access the parish array ... try the HTML to do: {{@beneficiario.parroquia.parroquia}} y and gives this error:    Error in render: "TypeError: Can not read property 'parish' of undefined" HTML        ...
asked by 19.01.2018 / 21:31
1
answer

problem when relating tables in MySql

Inside my mysql DB I have a table called teachers, which looks something like this. Nombre | email | id | password ... The problem is that I have to relate it to another call grupos , (it's to classically organize a group with its m...
asked by 20.11.2017 / 14:09
1
answer

How to enter a varibale in a name attribute in a form collective input?

I have a laravel blade form, using the input of the laravel collective form, for example: <div class="form-group col-xs-4"> {!!Form::label('Titulo de modalidad','Titulo de modalidad:')!!} {!!Form::text("cancion5","val...
asked by 20.10.2017 / 05:34
1
answer

save in public folder laravel

How can I save documents in the public_html folder on my server? I'm trying to save images but I can not get it, in my localhost it works fine, I attach my code: if($request->hasFile('img')){ $file = $request->fi...
asked by 08.10.2017 / 09:13
1
answer

I can not update the remember_token column - Laravel

Hi, I'm doing a login with laravel and if everything works fine, the problem I have is that when I log out I get this error: SQLSTATE[42S22]: [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]El nombre de columna 'id' no es válido. (SQL:...
asked by 07.10.2017 / 00:20
1
answer

Increase the value of a field

The code I have in the function is the following: DB::table('projects') ->where('order', DB::raw("(select 'order' from projects)")) ->order + 1; The error that shows me is the following:    Undefined property: Illuminate...
asked by 24.10.2017 / 16:45
2
answers

Error in dates in laravel 5.5 and SQLServer

Inserting any date in laravel 5.5 into a SQLserver database gives me the following error: SQLSTATE[22003]: [Microsoft][ODBC Driver 11 for SQL Server][SQL Server] Error de desbordamiento aritmético al convertir expression al tipo de datos datet...
asked by 24.10.2017 / 18:45