diff --git a/.env.example b/.env.example index 9be0af6..d0d423c 100644 --- a/.env.example +++ b/.env.example @@ -52,4 +52,4 @@ VITE_PUSHER_PORT="${PUSHER_PORT}" VITE_PUSHER_SCHEME="${PUSHER_SCHEME}" VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" -HTTP_SECURE=true +HTTPS_AWARE=true diff --git a/app/Http/Controllers/SaleController.php b/app/Http/Controllers/SaleController.php index 1fb5430..e2301c4 100644 --- a/app/Http/Controllers/SaleController.php +++ b/app/Http/Controllers/SaleController.php @@ -18,7 +18,7 @@ class SaleController extends Controller $query->where('code', 'like', "%{$request->q}%"); } - $query->orderBy('created_at', 'desc'); + $query->orderBy('date', 'desc'); return inertia('Sale/Index', [ 'query' => $query->paginate(10),