| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace Modules\Camera\Jobs;
- use Illuminate\Bus\Queueable;
- use Illuminate\Queue\SerializesModels;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Foundation\Bus\Dispatchable;
- use Illuminate\Support\Facades\Log;
- class CameraDownload implements ShouldQueue
- {
- use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
- protected $exceData;
- /**
- * Create a new job instance.
- *
- * @return void
- */
- public function __construct(string $exec)
- {
- $this->exceData = $exec;
- }
- /**
- * Execute the job.
- *
- * @return void
- */
- public function handle()
- {
- $result = exec($this->exceData);
- Log::info($result);
- }
- }
|