<?php namespace App; use Illuminate\Database\Eloquent\Model; class Allowedpaymentmethod extends Model { protected $fillable = [ 'PAYMENT', 'allowed', ]; protected $table = 'allowed_payment_methods'; public function payment() { return $this->hasOne('App\Ajurendpointpaymentmethod', 'PAYMENT', 'PAYMENT'); } }