1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00

Week 30/2022

This commit is contained in:
Samuel Štancl 2022-07-31 03:36:17 +02:00
parent cc3667933a
commit 21b9739d84
4 changed files with 45 additions and 2 deletions

View file

@ -0,0 +1,11 @@
---
title: 'You can enable JS sourcemaps using @vite_js in Laravel '
tweet_id: '1553002662517678081'
thread_slug: weekly-thread-2022-30
author_username: jbrooksuk
images:
- 'https://pbs.twimg.com/media/FYhWV8mWAAULTRT.jpg'
created_at: 2022-07-29T13:01:02+00:00
slug: you-can-enable-js-sourcemaps-using-at-vite-js-in-laravel
---
🗺 Using @vite_js? You can enable JS sourcemaps in the vite.config.js file.

View file

@ -0,0 +1,13 @@
---
title: 'You can use WITH TIES instead of LIMIT to return more results if they have the same value '
tweet_id: '1553002673531543552'
thread_slug: weekly-thread-2022-30
author_username: tobias_petry
images:
- 'https://pbs.twimg.com/media/FYqFF_wWAAAAGKm.jpg'
created_at: 2022-07-29T13:01:05+00:00
slug: you-can-use-with-ties-instead-of-limit-to-return-more-results-if-they-have-the-same-value
---
⚡️ Database Tip
Everyone knows the LIMIT clause. But what do you do if you want to have e.g. the employees with the TOP 3 salaries *and* not exclude the 4th or 5th one earning the same as the 3rd? The WITH TIES clause can return more results if the value is the same. Great!