removed queues #40

This commit is contained in:
denisdulici 2017-11-17 00:37:26 +03:00
parent 79b3467bdd
commit 6a367681c5
3 changed files with 46 additions and 12 deletions

View File

@ -2,22 +2,22 @@
namespace App\Notifications\Expense; namespace App\Notifications\Expense;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Notification; use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\MailMessage;
class Bill extends Notification implements ShouldQueue class Bill extends Notification
{ {
use Queueable; /**
* The invoice model.
*
* @var object
*/
public $bill; public $bill;
/** /**
* Create a notification instance. * Create a notification instance.
* *
* @param object $bill * @param object $bill
* @return void
*/ */
public function __construct($bill) public function __construct($bill)
{ {

View File

@ -2,22 +2,22 @@
namespace App\Notifications\Income; namespace App\Notifications\Income;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Notification; use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\MailMessage;
class Invoice extends Notification implements ShouldQueue class Invoice extends Notification
{ {
use Queueable; /**
* The bill model.
*
* @var object
*/
public $invoice; public $invoice;
/** /**
* Create a notification instance. * Create a notification instance.
* *
* @param object $invoice * @param object $invoice
* @return void
*/ */
public function __construct($invoice) public function __construct($invoice)
{ {

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateFailedJobsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('failed_jobs', function (Blueprint $table) {
$table->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');
}
}