“Error: llame a una función miembro addeAgERConStaints () en NULL en el archivo” Código de respuesta

Error: llame a una función miembro addeAgERConStaints () en NULL en el archivo


in your relationship you are missing return statement, 
please follow the following example

public function user() {
        $this->belongsTo(User::class,'user_id','id');
}

to 
  
public function user() {
        return $this->belongsTo(User::class,'user_id','id');
    }
shafeeque

Llame a una función de miembro addeAgRonstraints () en NULL

You are missing return statements in the methods that define relations. They need to return relation definition.
Alive Ape

Respuestas similares a “Error: llame a una función miembro addeAgERConStaints () en NULL en el archivo”

Preguntas similares a “Error: llame a una función miembro addeAgERConStaints () en NULL en el archivo”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código