I created several tables:
Users:
chave primária
email
senha
Physical Detail:
user_id
altura
Personal Information:
user_id
estado_civil
Now I'm having trouble fetching cross-results.
Example: Find users with altura =...
I have a question about how to search for clients with multiple filters.
Example: nome cliente , tipo de cliente , status do cliente , endereço , cidade .
Detail: All these filters are in different fields....
I have the following code in my model:
public static function boot(){
parent::boot();
// Não deixa excluir caso possua registros vinculados.
static::deleting(function($content_area){
if($total = $content_area->contents-...
As would be an example of querying a bd with related tables and inserting data into them.
I have the tables:
Produtos
Tamanhos
Generos
I need to display in the view produtos.blade.php a list with all the registered products a...
I am doing a search by taking a word part and playing in a search type LIKE for fields fields. I use Eloquent and relationships, but it does not bring the data.
{
$pesquisa = $dataForm['pesquisa'];
$atestados = Atestad...
I have a group of Users that have Many To Many relationship, to create this relationship I made a beLongsToMany function within the Users model. But every time I call this function I get the following message:
Uncaught exception 'BadMethodC...
I have several items sold in a month and I would like to display only the items
sold in the current month.
Example: In September I had a total of 30 items sold, and in August, 20 items.
How do I pick up the current date and check the quant...
I have this SQL code that when running directly in the database works fine, but I had to convert it to the laravel format. It performs but returns no results.
Where am I going wrong? It seems that the problem is there in% w / o% of% w / o...
I have a Polymorphic Relationship between the Customer and Car Class.
Client Class:
public function carros()
{
return $this->morphMany(Carro::class, 'dono');
}
Car Class:
public function dono()
{
return $this->morphTo...
I have this code working, but I would like to know if I would have a more elegant way of writing the following code in the view, through Laravel's forms:
<div class="row">
<div class="col-xs-12 form-group">
<label fo...