mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
clear test user data
This commit is contained in:
@@ -19,6 +19,7 @@ Route::post('password/reset', 'Auth\ResetPasswordController@postReset')->name('p
|
||||
Route::get('/clear-test', function(){
|
||||
$bookings = \App\Booking::where('user_id', 1)->get();
|
||||
foreach ($bookings as $booking){
|
||||
dd($booking->invoice->pluck('id'));
|
||||
if($booking->invoice){
|
||||
$booking->invoice->invoiceDetails->delete();
|
||||
$booking->invoice->invoiceStatuses->delete();
|
||||
|
||||
Reference in New Issue
Block a user