Compare commits
No commits in common. '564529895f16565984e00dd3b976738ef796476c' and 'f860a3694761658a89cdbf3a341655ff58f67a20' have entirely different histories.
564529895f
...
f860a36947
11 changed files with 22 additions and 158 deletions
@ -1,36 +0,0 @@ |
|||||||
<?php |
|
||||||
|
|
||||||
namespace App\Console\Commands; |
|
||||||
|
|
||||||
use Illuminate\Console\Command; |
|
||||||
use Illuminate\Support\Facades\Queue; |
|
||||||
|
|
||||||
class CheckQueue extends Command |
|
||||||
{ |
|
||||||
/** |
|
||||||
* The name and signature of the console command. |
|
||||||
* |
|
||||||
* @var string |
|
||||||
*/ |
|
||||||
protected $signature = 'queue:check'; |
|
||||||
|
|
||||||
/** |
|
||||||
* The console command description. |
|
||||||
* |
|
||||||
* @var string |
|
||||||
*/ |
|
||||||
protected $description = 'Check if there is a job in the queue'; |
|
||||||
|
|
||||||
/** |
|
||||||
* Execute the console command. |
|
||||||
* |
|
||||||
* @return int |
|
||||||
*/ |
|
||||||
public function handle() |
|
||||||
{ |
|
||||||
$count = Queue::size(); // Get the number of jobs in the queue |
|
||||||
if ($count > 0) { |
|
||||||
$this->call('queue:process'); // Call the ProcessQueue command if there is a job in the queue |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,33 +0,0 @@ |
|||||||
<?php |
|
||||||
|
|
||||||
namespace App\Console\Commands; |
|
||||||
|
|
||||||
use Illuminate\Console\Command; |
|
||||||
use Illuminate\Support\Facades\Queue; |
|
||||||
|
|
||||||
class ProcessQueue extends Command |
|
||||||
{ |
|
||||||
/** |
|
||||||
* The name and signature of the console command. |
|
||||||
* |
|
||||||
* @var string |
|
||||||
*/ |
|
||||||
protected $signature = 'queue:process'; |
|
||||||
|
|
||||||
/** |
|
||||||
* The console command description. |
|
||||||
* |
|
||||||
* @var string |
|
||||||
*/ |
|
||||||
protected $description = 'Process the tasks in the queue'; |
|
||||||
|
|
||||||
/** |
|
||||||
* Execute the console command. |
|
||||||
* |
|
||||||
* @return int |
|
||||||
*/ |
|
||||||
public function handle() |
|
||||||
{ |
|
||||||
Queue::daemon(); // Process the tasks in the queue |
|
||||||
} |
|
||||||
} |
|
@ -1,25 +0,0 @@ |
|||||||
|
|
||||||
<style> |
|
||||||
.main-column{ |
|
||||||
display:flex; |
|
||||||
width:100%; |
|
||||||
} |
|
||||||
.column-one{ |
|
||||||
width:50%; |
|
||||||
} |
|
||||||
</style> |
|
||||||
|
|
||||||
<h1>Appointment Confirmed</h1> |
|
||||||
<br /> |
|
||||||
<div class="main-column" style = "display:block; width:100%;"> |
|
||||||
<div class="column-one" style = "display:block; width:100%;"> |
|
||||||
<h3>Appointment Details</h3> |
|
||||||
<b>Appointment Date: </b>{{$date}}<br /><br /> |
|
||||||
<b>Appointment Start Time: </b>{{$start_time}}<br /><br /> |
|
||||||
<b>Appointment End Time: </b>{{$end_time}}<br /><br /> |
|
||||||
<b>Appointee Full Name: </b> {{ $full_name }}<br /><br /> |
|
||||||
<b>Phone:</b> {{$phone}}<br /><br /> |
|
||||||
<b>Email:</b> {{$email}}<br /><br /> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
|
|
Loading…
Reference in new issue