TIP: You want to export #laravel eloquent query to native mysql? Here's a quick way to do it: https://t.co/ORGfKtEHNY - Gives out everything you need to run it in mysql console
* Warning, doesn't go friendly with relationships and so on. Works on single queries
🔥 When using Laravel Dusk to test @stripe Elements integrations, sometimes Dusk will type faster than Elements can handle, so I use this little trick which adds a pause between each keystroke: https://t.co/GbG0crVMMS
Quick CSS trick: - disable parent scrolling when child container (like sidebar) reaches scroll end.
Support https://t.co/lEnfJx5qq7 https://t.co/UxIME6vkqE
#Laravel tip of the day: if you need to add a new column to the database table, in migration you should probably check if the table exists and if the column doesn't exist yet. Here's the snippet: https://t.co/iwEO2iWDaK
🔥 In many cases avoiding `else` and using early returns will greatly improve readability of your code.
I wish somebody would have told me this sooner in my career.
Contrived example in the image. Real world example: https://t.co/oOsSGAJLZm
#Laravel tip of the day: you can use Eloquent withCount() with parameter callback function, filtering records. Imagine you need to get teams and their amount of users with email ending "https://t.co/zdLC9Zzb6t". Here's a snippet. Read more about withCount: https://t.co/UaZ09DPnRn https://t.co/dpriRoP5u8
🔥 3 easy ways to improve an email modal:
1) Explain *why* people should sign up
2) Add social proof
3) Replace “Subscribe“ with a value-based CTA https://t.co/B4qKtZrW6Y
💡TIP: Serial = one at a time. Parallel = multiple at the same time. You can choose to run things as serial or parallel based on your needs.
🔥 One way to make a boring form look more interesting is to draw inspiration from how the output of the form is designed.
Here are a few ways you can reuse your existing design decisions to make a form more exciting: https://t.co/URoBGyC1LE
Came across a quick way to fake a single requirement so Composer can install a dependency instead of using the heavy handed `--ignore-platform-reqs`. https://t.co/LYsHRmTJon