<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Payment extends Model
{
    //
}

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Payment extends Model
{
    /**
     * The attributes that aren't mass assignable.
     *
     * @var array
     */
    protected $guarded = ['id'];

    /**
     * Get the User associated with the Payment model.
     */
    public function user()
    {
        return $this->belongsTo('App\User', 'recorded_by');
    }

    /**
     * Get the DuesTransaction
     */
    public function duesTransaction()
    {
        return $this->hasOne('App\DuesTransaction');
    }

}

Add 'guarded' to allow for mass assignment via Eloquent; Add User and DuesTransaction Eloquent relationships
Add 'guarded' to allow for mass assignment via Eloquent; Add User and DuesTransaction Eloquent relationships
