Posts by hoheckell • 11 points
5 posts
-
0
votes2
answers372
viewsA: Collate Mongodb
In order to find both accented and accent words in the search, it is necessary to define a text entry with the fields used in the search belonging to Collection. Thus: db.collection.createIndex( {…
-
0
votes2
answers82
viewsA: Laravel does not return variable passed by with
return redirect()->action('UserController@profile', ['id' => 1]); Test like this. Using this structure.
-
1
votes1
answer184
viewsA: Use of the Eloquent hasManyThrough
Modelo Cliente public function plano() { return $this->belongsToMany('App\Plano', 'plano_cliente','cliente_id','plano_id'); } Flat model public function cliente() { return…
-
0
votes1
answer184
viewsQ: Use of the Eloquent hasManyThrough
// Modelo Cliente public function plano() { return $this->hasManyThrough('App\Plano', 'App\Plano_cliente','cliente_id','id','plano_id'); } //Modelo Plano public function cliente() { return…
-
0
votes3
answers719
viewsA: Saving data with relationship (Onetomany) Lavarel 5.1
<?php /* O modelo que cede a chave estrangeira que tem o hasmany o que possui a chave da entidade cedente possui belongsTo Por exemplo: A tabela pedidos possui a id do…