Add test for setting supplier

This commit is contained in:
Too
2018-06-27 23:34:35 +08:00
parent 819da14684
commit 206a637a88
7 changed files with 623 additions and 638 deletions
+6 -4
View File
@@ -19,11 +19,13 @@ class BookingController extends Controller
{
public function index(){
$user = Auth::user();
$bookings = Booking::select('id', 'created_at', 'status', 'rate', 'term', 'amount', 'bia', 'verification_status')
->where('user_id', $user->id)
->get();
$bookings = Booking::select('id', 'created_at', 'status', 'rate', 'term', 'amount', 'bia', 'verification_status')
->where('user_id', $user->id)
->get();
// reformat to fit frontend structure
foreach ($bookings as $booking) {
// set timeout