Initial integration with Quickbooks

This commit is contained in:
Deon George
2019-06-12 16:25:15 +10:00
parent eb254def7a
commit 9fa773d283
12 changed files with 658 additions and 2 deletions

27
app/Models/External/Integrations.php vendored Normal file
View File

@@ -0,0 +1,27 @@
<?php
namespace App\Models\External;
use Illuminate\Database\Eloquent\Model;
use App\User;
class Integrations extends Model
{
public $table = 'external_integrations';
public function user()
{
return $this->belongsTo(User::class);
}
function scopeActive()
{
return $this->where('active',TRUE);
}
function scopeType($query,string $type)
{
return $query->where('type',$type);
}
}