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