From e86b913033b0357ff269e5a91bd288a3f53c6c31 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 12 Nov 2020 13:06:53 +0800 Subject: [PATCH] test sending booking do to email --- routes/web.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/routes/web.php b/routes/web.php index d1d23a25..ef34afad 100644 --- a/routes/web.php +++ b/routes/web.php @@ -46,6 +46,13 @@ Route::get('/old-invoices', function(){ } })->name('invoice.old'); +Route::get('/approved-today', function(){ + $approvedInvoices = InvoiceStatuses::where('status', 'approve')->whereDate('created_at', Carbon::today()->subDay(1))->get(); + foreach($approvedInvoices as $approved){ + echo $approved->invoice->booking->id.''; + } +}); + Route::group(['middleware' => ['role:admin']], function() { Route::get('bulkBookings', function () { return view('booking.bulkBooking');