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:
baodev0
2026-05-29 09:28:08 +07:00
parent fccb0c353a
commit 6bb4a47bfb
89 changed files with 3355 additions and 4560 deletions
+5 -6
View File
@@ -38,21 +38,20 @@ class SyncFolder implements ShouldQueue
public function handle()
{
foreach ($this->data as $item) {
$this->vCenter->apiUri = $item->host;
if (!$item->token) {
$token = $this->vCenter->loginServer($item);
if ($token) {
vCenter::where('id', $item->id)->update(['token' => $token]);
$this->vCenter->token = $token;
$item->token = $token;
}
}
$this->vCenter->token = $item->token;
if (!$this->vCenter->token) {
if (!$item->token) {
continue;
}
$this->vCenter->setConnection($item->host, $item->token);
$dataCenter = ModuleDatacenter::where('vcenter_id', $item->id)->select('id', 'datacenter_id')->get();
foreach ($dataCenter as $_item) {
$folder = $this->vCenter->getAllFolder($_item['datacenter_id']);
@@ -61,7 +60,7 @@ class SyncFolder implements ShouldQueue
$token = $this->vCenter->loginServer($item);
if ($token) {
vCenter::where('id', $item->id)->update(['token' => $token]);
$this->vCenter->token = $token;
$this->vCenter->setConnection($item->host, $token);
}
$folder = $this->vCenter->getAllFolder($_item['datacenter_id']);
}