diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb
index a35f840..caf2322 100644
--- a/.idea/sonarlint/issuestore/index.pb
+++ b/.idea/sonarlint/issuestore/index.pb
@@ -60,4 +60,15 @@ Q
W
'app/Http/Controllers/FoodController.php,f\c\fce134949d5b1008dd9f1b897f6b69a73719c6c0
W
-'app/Http/Controllers/UserController.php,7\d\7de9f5d267d12a172eff77837bcb8fb2e88564c2
\ No newline at end of file
+'app/Http/Controllers/UserController.php,7\d\7de9f5d267d12a172eff77837bcb8fb2e88564c2
+S
+#resources/views/dashboard.blade.php,c\b\cb9b83605560606e98f1366cfe970597db7f6f83
+:
+
+.gitignore,a\5\a5cc2925ca8258af241be7e5b0381edf30266302
+X
+(resources/views/midtrans/error.blade.php,8\e\8e6f93637c9863e5b0fa246144b8af9ce0a0e945
+Z
+*resources/views/midtrans/success.blade.php,d\1\d1faf734fcce2afa5cee50c085f4d1612f85f3b7
+[
++resources/views/midtrans/unfinish.blade.php,8\8\886fde5af9c2846d4876694cf960f0638198b38e
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 9feb7a4..dcb0ec7 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -23,12 +23,11 @@
-
-
+
-
-
-
+
+
+
@@ -222,7 +221,10 @@
-
+
+
+
+
1600399429524
@@ -315,7 +317,14 @@
1600863796489
-
+
+ 1601204152781
+
+
+
+ 1601204152781
+
+
@@ -345,7 +354,8 @@
-
+
+
@@ -372,17 +382,17 @@
-
+
-
+
-
+
-
+
\ No newline at end of file
diff --git a/app/Models/Food.php b/app/Models/Food.php
index 3a952c7..2287cb4 100644
--- a/app/Models/Food.php
+++ b/app/Models/Food.php
@@ -26,12 +26,12 @@ public function toArray()
public function getCreatedAtAttribute($created_at)
{
return Carbon::parse($created_at)
- ->timestamp;
+ ->getPreciseTimestamp(3);
}
public function getUpdatedAtAttribute($updated_at)
{
return Carbon::parse($updated_at)
- ->timestamp;
+ ->getPreciseTimestamp(3);
}
public function getPicturePathAttribute()
{
diff --git a/app/Models/Transaction.php b/app/Models/Transaction.php
index e89b8ce..f14a803 100644
--- a/app/Models/Transaction.php
+++ b/app/Models/Transaction.php
@@ -37,11 +37,11 @@ public function user()
public function getCreatedAtAttribute($created_at)
{
return Carbon::parse($created_at)
- ->timestamp;
+ ->getPreciseTimestamp(3);
}
public function getUpdatedAtAttribute($updated_at)
{
return Carbon::parse($updated_at)
- ->timestamp;
+ ->getPreciseTimestamp(3);
}
}
diff --git a/app/Models/User.php b/app/Models/User.php
index 887fce7..2074a0c 100644
--- a/app/Models/User.php
+++ b/app/Models/User.php
@@ -69,11 +69,11 @@ class User extends Authenticatable
public function getCreatedAtAttribute($created_at)
{
return Carbon::parse($created_at)
- ->timestamp;
+ ->getPreciseTimestamp(3);
}
public function getUpdatedAtAttribute($updated_at)
{
return Carbon::parse($updated_at)
- ->timestamp;
+ ->getPreciseTimestamp(3);
}
}