The primary key on staff table should be id.. if it is different use somthing like return $this->belongsTo('App\Staff'. 'staff_id');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community