added backend functions for jump bridge fuel display with the new way we are doing jobs

This commit is contained in:
2021-05-17 06:08:05 +09:00
parent a0c0186337
commit de0071734b
15 changed files with 824 additions and 60 deletions
@@ -0,0 +1,45 @@
<?php
namespace App\Jobs\Commands\Structures;
//Internal Library
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
//Jobs
use App\Jobs\Commands\FetchAllianceStructures;
//Models
use App\Models\Structure\Structure;
use App\Models\Structure\Service;
class PurgeAllianceStructures implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
Structure::truncate();
Service::truncate();
FetchAllianceStructures::dispatch()->onQueue('default');
}
}