Add stubs for various Laravel components and scaffolding
- Created stubs for JavaScript and SASS assets. - Added stubs for channel, command, component, controller, event, factory, job, listener, mail, middleware, migration, model, notification, observer, policy, request, resource, route provider, seeder, and validation rule. - Implemented scaffolding for configuration, service provider, and Vite integration. - Included example views for module structure. - Introduced a module loader for Vite to handle asset paths dynamically.
This commit is contained in:
@@ -18,7 +18,10 @@ class ServiceClientRepository extends BaseApiRepository implements ServiceClient
|
||||
public function getActiveServices(int $customerId, ?string $productType = null, int $limit = 10)
|
||||
{
|
||||
$query = $this->model
|
||||
->with(['orderItem' => fn($q) => $q->with(['product', 'os.osGroup'])])
|
||||
->with([
|
||||
'invoice.order',
|
||||
'orderItem' => fn($q) => $q->with(['product', 'os.osGroup', 'order']),
|
||||
])
|
||||
->where('customer_id', $customerId)
|
||||
->orderByRaw("FIELD(status, 'active', 'pending', 'suspended', 'expired', 'cancelled', 'terminated')")
|
||||
->orderBy('started_at', 'desc');
|
||||
|
||||
Reference in New Issue
Block a user