title: One to Many Relationship with existing database. how to connect?
body: <p>I have a problem in creating a relationship with an existing database.</p>
  <pre><code>(Table1 one)
  business_list (Table name)
  Business_Number (PK)
  name
  description
  
  (Table2 many)
  setup_project (Table name)
  project_id (PK)
  ClientID (FK / Business_Number)
  name
  description
  
  BusinessList (Model)
  protected $table = 'general.business_list';
  public function setupProject(){
      return $this-&gt;hasMany(SetupProject::class, 'ClientID', 'Business_Number');
  }
  
  SetupProject (Model)
  protected $table = 'general.setup_project';
  public function businessList(){
      return $this-&gt;belongsTo(BusinessList::class);
  }
  
  (Controller)
  public function showProjects($id)
  {
      $setupProject = BusinessList::findOrFail($id)-&gt;setupProject;
      return $this-&gt;showAll($setupProject);
  }
  </code></pre>
  <p>Here is what i get in the postman, but i already define the local key. please help me guys. thank you
  <a href="https://i.stack.imgur.com/CH8oq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CH8oq.png" alt="enter image description here" /></a></p>