Questions tagged as 'eloquent'

0
answers

get object with axios.get - APIREST

I'm filling a table in php using axios.get that I send to an api to collect data from the database, the problem is that, in the response.data is not returning an object, if not an array, which does not work to fill my table Correct example...
asked by 30.11.2018 / 19:46
0
answers

Error: Attempting to get ownership of a non-object

I'm having the following error when trying to get the value idEtapa in this way $ activity-> stage-> idEtapa. I have the same error accessing this way: $ activity-> stage ['idEtapa']. My code is this: public function GuardarCronogr...
asked by 29.11.2018 / 16:39
1
answer

query eloquent pivot table

I have the following tables empresa | estado_empresa | estado -id -id_empresa -id -nombre -id_estado -estado -Fecha_creado -Fecha_actualizado In my system, comp...
asked by 21.11.2018 / 16:01
0
answers

Update a record in mongodb Laravel Jenssegers?

Hi, thanks for helping me. I have the following problem. I need to update a json that has the following structure. "Configuracion": { "Estados": { "Idioma": "es", "ComponenteActual": "datos-personales_2", "ProgresoDeBarra": {...
asked by 15.10.2018 / 04:15
0
answers

Property [id] does not exist on this collection instance Laravel 5.6

I want to ask for a little help, maybe your critical eye can help me solve that, I'm working with 2 tables, which have these migrations: Table questions: Schema::create('questions', function (Blueprint $table) { $table->increments(...
asked by 11.09.2018 / 04:55
1
answer

select in laravel between tables many to many

To select specific columns in laravel by select by obligation you must bring the id and the fk so that the tuples can be related, but when I want to do a - > select () between a much relation a lot does not work for me since in the middle...
asked by 08.07.2018 / 19:44
1
answer

Laravel does not load the relationships correctly from belongsTo

At the database level, all the users have a profile assigned, when it comes to consulting from the profile model, the users bring it well, but when consulting from the user model the profiles with with () loads only 1 relation for each type of...
asked by 04.07.2018 / 23:01
3
answers

Can not I update with Eloquent in laravel 5.6.25?

Hi, I'm trying to update Laravel, I'll leave my model and my controller, I'll even show the values in the log and if they are correct. My database is Mysql. This use in Ajax $.ajax({ type: 'PUT', url: 'posts/...
asked by 06.07.2018 / 06:11
0
answers

Problem with installation of illuminate / database (Eloquent) from composer

I have this problem, when trying to install illuminate / database from composer I am throwing this error and I really do not know, according to what I have looked for it has to do with the versions, but I do not know how to solve that    ...
asked by 05.07.2018 / 19:29
1
answer

How to relate from many to many in Eloquent (Laravel)

I am using MySQL as a database and Eloquent as ORM. I have been creating a page that is of food or dishes, in which I already have related the meals with the chef that prepare it, so I have them : Table foods (meals) publi...
asked by 16.07.2018 / 21:55