Initial integration with Quickbooks
This commit is contained in:
27
app/Models/External/Integrations.php
vendored
Normal file
27
app/Models/External/Integrations.php
vendored
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user