mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-21 13:24:27 +00:00
clear test user data
This commit is contained in:
+1
-1
@@ -104,7 +104,7 @@ class Booking extends Model
|
||||
parent::boot();
|
||||
self::deleting(function($booking) {
|
||||
$booking->userBankSlip()->delete();
|
||||
// $booking->supplierBooking()->delete();
|
||||
$booking->supplierBooking()->delete();
|
||||
$booking->chinaBankSlip()->each(function($bankslip) {
|
||||
$bankslip->delete();
|
||||
});
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ 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(){
|
||||
\App\Booking::where('user_id', 1)->delete();
|
||||
\App\Booking::where('user_id', 1)->delete;
|
||||
});
|
||||
|
||||
Route::get('/po-approval', function(){
|
||||
|
||||
Reference in New Issue
Block a user