Posts by Everton Silva • 7 points
2 posts
-
-2
votes3
answers445
viewsA: How to make the relationship of an extra field (pivot) in belongsToMany
public function municipios() { return $this->belongsToMany('Projeto\DB\Municipio', 'municipios_usuarios') ->withPivot(['criado_por_id', 'atualizado_por_id']); } try to put the clasps.…
-
1
votes1
answer599
viewsQ: How do I get a saved record from the Cakephp database
Good evening, how do I get a specific field on my table. I wanted to take this field and receive it in a variable and show in the view. Thank you!!
cakephp-2asked Everton Silva 7