“Kesalahan: Panggilan ke fungsi anggota addeAgerConstraints () di null in file” Kode Jawaban

Kesalahan: Panggilan ke fungsi anggota addeAgerConstraints () di 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');
    }
shafeeque

Panggilan ke fungsi anggota addeAgerConstraints () di null

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

Jawaban yang mirip dengan “Kesalahan: Panggilan ke fungsi anggota addeAgerConstraints () di null in file”

Pertanyaan yang mirip dengan “Kesalahan: Panggilan ke fungsi anggota addeAgerConstraints () di null in file”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya