Invoice PAIN & CSV can be uploaded
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Scopes;
|
||||
|
||||
use App\Models\Tenant;
|
||||
use App\Providers\AuthCheckProvider;
|
||||
use App\Repositories\CostUnitRepository;
|
||||
use App\Repositories\InvoiceRepository;
|
||||
@@ -9,6 +10,7 @@ use App\Repositories\PageTextRepository;
|
||||
use App\Repositories\UserRepository;
|
||||
|
||||
abstract class CommonController {
|
||||
protected Tenant $tenant;
|
||||
protected UserRepository $users;
|
||||
protected CostUnitRepository $costUnits;
|
||||
|
||||
@@ -17,6 +19,7 @@ abstract class CommonController {
|
||||
protected InvoiceRepository $invoices;
|
||||
|
||||
public function __construct() {
|
||||
$this->tenant = app('tenant');
|
||||
$this->users = new UserRepository();
|
||||
$this->costUnits = new CostUnitRepository();
|
||||
$this->pageTexts = new PageTextRepository();
|
||||
|
||||
Reference in New Issue
Block a user