From a56f00a98d59403c6f4eca6ae2f2109ffb70c563 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Thu, 22 Nov 2018 01:49:12 -0600 Subject: [PATCH] corp structure --- app/Library/Finances.php | 2 +- app/Models/CorpJournal.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Library/Finances.php b/app/Library/Finances.php index f5ab3e221..a515ef3af 100644 --- a/app/Library/Finances.php +++ b/app/Library/Finances.php @@ -110,7 +110,7 @@ class Finances { $check = DB::table('CorpJournals')->where('id', $journal['id'])->get(); //if we don't find the journal entry, add the journal entry to the database if($check->count() === 0) { - $entry = new \App\Models\CorpJournal; + $entry = new CorpJournal; $entry->id = $journal['id']; $entry->corporation_id = $corpId; $entry->division = $division; diff --git a/app/Models/CorpJournal.php b/app/Models/CorpJournal.php index 10b8d5f65..b2850da38 100644 --- a/app/Models/CorpJournal.php +++ b/app/Models/CorpJournal.php @@ -9,7 +9,7 @@ class CorpJournal extends Model /** * Table Name */ - protected $table = 'CorpJournal'; + protected $table = 'CorpJournals'; /** * Timestamps