Code Styling
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Scopes;
|
||||
|
||||
use App\Domains\Admin\Repositories\AdminTenantRepository;
|
||||
use App\Domains\Admin\Repositories\AdminUserRepository;
|
||||
use App\Models\Tenant;
|
||||
use App\Providers\AuthCheckProvider;
|
||||
use App\Repositories\CostUnitRepository;
|
||||
@@ -23,6 +25,8 @@ abstract class CommonController {
|
||||
protected EventRepository $events;
|
||||
protected EventParticipantRepository $eventParticipants;
|
||||
protected EstimatesRepository $estimates;
|
||||
protected AdminUserRepository $adminUsers;
|
||||
protected AdminTenantRepository $adminTenants;
|
||||
|
||||
public function __construct() {
|
||||
$this->tenant = app('tenant');
|
||||
@@ -33,6 +37,8 @@ abstract class CommonController {
|
||||
$this->events = new EventRepository();
|
||||
$this->eventParticipants = new EventParticipantRepository();
|
||||
$this->estimates = new EstimatesRepository();
|
||||
$this->adminUsers = new AdminUserRepository();
|
||||
$this->adminTenants = new AdminTenantRepository();
|
||||
}
|
||||
|
||||
protected function checkAuth() {
|
||||
|
||||
Reference in New Issue
Block a user