diff --git a/app/Notifications/Expense/Bill.php b/app/Notifications/Expense/Bill.php index 0d7df9d83..e80b9ad56 100644 --- a/app/Notifications/Expense/Bill.php +++ b/app/Notifications/Expense/Bill.php @@ -2,22 +2,22 @@ namespace App\Notifications\Expense; -use Illuminate\Bus\Queueable; -use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Notification; use Illuminate\Notifications\Messages\MailMessage; -class Bill extends Notification implements ShouldQueue +class Bill extends Notification { - use Queueable; - + /** + * The invoice model. + * + * @var object + */ public $bill; /** * Create a notification instance. * * @param object $bill - * @return void */ public function __construct($bill) { diff --git a/app/Notifications/Income/Invoice.php b/app/Notifications/Income/Invoice.php index 354786e9a..6ddb0862e 100644 --- a/app/Notifications/Income/Invoice.php +++ b/app/Notifications/Income/Invoice.php @@ -2,22 +2,22 @@ namespace App\Notifications\Income; -use Illuminate\Bus\Queueable; -use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Notification; use Illuminate\Notifications\Messages\MailMessage; -class Invoice extends Notification implements ShouldQueue +class Invoice extends Notification { - use Queueable; - + /** + * The bill model. + * + * @var object + */ public $invoice; /** * Create a notification instance. * * @param object $invoice - * @return void */ public function __construct($invoice) { diff --git a/database/migrations/2017_11_16_000000_create_failed_jobs_table.php b/database/migrations/2017_11_16_000000_create_failed_jobs_table.php new file mode 100644 index 000000000..b11a926f5 --- /dev/null +++ b/database/migrations/2017_11_16_000000_create_failed_jobs_table.php @@ -0,0 +1,34 @@ +bigIncrements('id'); + $table->text('connection'); + $table->text('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('failed_jobs'); + } +}