mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
remove clear test user data route
This commit is contained in:
@@ -16,16 +16,6 @@ use Carbon\Carbon;
|
||||
Route::get('/', 'WelcomeController@index');
|
||||
Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.request');
|
||||
Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('password.reset');
|
||||
Route::get('/clear-test', function(){
|
||||
$bookings = \App\Booking::where('user_id', 1)->get();
|
||||
foreach ($bookings as $booking){
|
||||
if($booking->invoice){
|
||||
InvoiceStatuses::where('invoice_id', $booking->invoice->id)->delete();
|
||||
\App\InvoiceDetails::where('invoice_id', $booking->invoice->id)->delete();
|
||||
\App\Invoice::find($booking->invoice->id)->delete();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Route::get('/po-approval', function(){
|
||||
$approvedInvoices = InvoiceStatuses::where(function($q) {
|
||||
|
||||
Reference in New Issue
Block a user