mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 12:24:09 +00:00
clear test user data
This commit is contained in:
+3
-1
@@ -20,7 +20,9 @@ Route::get('/clear-test', function(){
|
||||
$bookings = \App\Booking::where('user_id', 1)->get();
|
||||
foreach ($bookings as $booking){
|
||||
if($booking->invoice){
|
||||
dd($booking->invoice);
|
||||
$booking->invoice->invoiceDetails->delete();
|
||||
$booking->invoice->invoiceStatuses->delete();
|
||||
$booking->invoice->delete();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user