Call to a member function addEagerConstraints() on null
You are missing return statements in the methods that define relations. They need to return relation definition.
Call to a member function addEagerConstraints() on null
You are missing return statements in the methods that define relations. They need to return relation definition.
Error: Call to a member function addEagerConstraints() on null in file
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');
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us