large commit

This commit is contained in:
Omair Saleh
2019-12-30 11:07:54 +08:00
parent 56b806ab24
commit fb74b365c0
2 changed files with 6 additions and 0 deletions
@@ -101,4 +101,9 @@ class OrderController extends Controller
// return $this->pdf->loadView('pages.pdf.qr', $data)->stream();
}
public function cleanup(){
$orders = order::all();
dd($orders);
}
}
+1
View File
@@ -68,6 +68,7 @@ Route::group(['middleware' => ['secure', 'clearcache']], function (): void {
Route::get('/{orderId}/qr/{type}/download', 'Orders\OrderController@download')->name('order.download.qr');
Route::get('/{orderId}/qr/{type}/print', 'Orders\OrderController@print')->name('order.print.qr');
Route::get('order/cleanup', 'Orders\OrderController@cleanup')->name('order.cleanup');
});