Relationship returning null?
Player modal relationship:
public function business()
{
return $this->hasOne('App\Database\Frontend\Roleplay\Business\Businesses', 'business_id', 'business_id');
}
Business Modal:
<?php
namespace App\Database\Frontend\Roleplay\Business;
use Eloquent;
class Businesses extends Eloquent
{
protected $primaryKey = 'business_id';
protected $table = 'srp_businesses';
public $timestamps = true;
protected $fillable = [];
}
I want to get FROM srp_businesses WHERE business_id = Player's column business_id, but its returning null? I know for a fact it exists.. its just the relationship that's messing up.
via VoiD HD