Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Jobs;
- use App\Jobs\Job;
- use Illuminate\Queue\SerializesModels;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Contracts\Bus\SelfHandling;
- use Illuminate\Contracts\Queue\ShouldQueue;
- class Parse extends Job implements SelfHandling, ShouldQueue
- {
- use InteractsWithQueue, SerializesModels;
- protected $url;
- /**
- * Create a new job instance.
- *
- * @return void
- */
- public function __construct($url)
- {
- $this->url = $url;
- }
- /**
- * Execute the job.
- *
- * @return void
- */
- public function handle()
- {
- $url = $this->url;
- // Parse page.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement