Skip to content

Instantly share code, notes, and snippets.

@pyaesone17
Last active February 7, 2018 13:42
Show Gist options
  • Save pyaesone17/087ec4f90c8c294a68c7f1a6c78b3469 to your computer and use it in GitHub Desktop.
Save pyaesone17/087ec4f90c8c294a68c7f1a6c78b3469 to your computer and use it in GitHub Desktop.
Queue
<?php
namespace App\Jobs;
use App\User;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
class WelcomeEmailJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $user;
/**
* Create a new job instance.
*
* @param Podcast $podcast
* @return void
*/
public function __construct(User $user)
{
$this->user = $user;
}
public function handle()
{
\Log::info("Send user email");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment