123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace App\Jobs;
- use App\Services\Appearance\RankService;
- use Illuminate\Bus\Queueable;
- use Illuminate\Queue\SerializesModels;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Foundation\Bus\Dispatchable;
- class AppearanceUserJob implements ShouldQueue
- {
- use Dispatchable;
- use InteractsWithQueue;
- use Queueable;
- use SerializesModels;
- /**
- * Create a new job instance.
- *
- * @return void
- */
- public function __construct($uid)
- {
- $this->uid = $uid;
- }
- private $uid;
- /**
- * Execute the job.
- *
- * @return void
- */
- public function handle()
- {
- //
- $uid = $this->uid;
- (new RankService())->passive($uid);
- }
- }
|