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:
+2
-2
@@ -13,10 +13,10 @@ class Invoice extends Model
|
||||
}
|
||||
|
||||
public function invoiceDetails() {
|
||||
return $this->hasOne('App\InvoiceDetails');
|
||||
return $this->hasMany(InvoiceDetails::class);
|
||||
}
|
||||
|
||||
public function invoiceStatuses() {
|
||||
return $this->hasMany('App\InvoiceStatuses');
|
||||
return $this->hasMany(InvoiceStatuses::class);
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -19,7 +19,8 @@ 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){
|
||||
var_dump($booking->invoice);
|
||||
var_dump($booking->invoice->invoiceDetails);
|
||||
// $booking->invoice->invoiceStatuses->delete();
|
||||
// $booking->supplierBooking->delete();
|
||||
// $booking->chinaBankSlip->delete();
|
||||
// $booking->userBankSlip->delete();
|
||||
|
||||
Reference in New Issue
Block a user