Questions tagged as 'laravel-eloquent'

1
answer

Best practice for Mass Assignment

In order to obtain the facilities that the framework proposes, in the specific case of writing data to a table in a database, we can use the 'mass assignment' feature, which means, in free translation, 'mass insertion ( of data) '. I followed...
asked by 22.05.2016 / 14:21
1
answer

Querying child objects that satisfy condition on parent objects, Relationship with eloquent laravel

I have two tables in my project that relate, but I would like to make a query consult that would bring all the child entities that one field would be equal to the parent entity, being for all parent entities that satisfy a specific condition....
asked by 17.10.2017 / 13:01
1
answer

Crud with Eloquent Laravel

I'm trying to do a CRUD with Eloquent Laravel in 2 tables with FK and PK, but I'm not having success, since the models only lack the CRUD function, can anyone help me? This is model with FK: class crud_consignado_acordo extends Model {...
asked by 22.09.2018 / 19:14
1
answer

I need to return this JSON with Laravel eloquent

My Json: { "data":[ { "data":{ "name":"Documents", "size":"75kb", "type":"Folder" }, "children":[ { "data":{ "name":"Work",...
asked by 23.03.2018 / 14:11