{ All snippets }

Tweetsnippet is a curated list of tips and tricks from Twitter.

Michael Dyrynda

Michael Dyrynda @michaeldyrynda

🧐 The @laravelphp docs are a fantastic resource to read over from time to time, given how often new features are added to the framework. ❓Did you know you can add a public shouldQueue method on your job to determine if the job actually *needs* to be queued? https://t.co/9E1uIrmugK

Annie 🦄⚡

Annie 🦄⚡ @anniebombanie_

🚀#CSS Tip Pseudo-elements can trip you up sometimes. Here's a lil something explaining their stack order. To change their natural order, assign these two properties: 1️⃣ z-index: __; 2️⃣ position: absolute; ⚠️ You MUST use a negative number to position it *under* its parent. https://t.co/YirNdyt8aZ


Laracasts @laracasts

Tip: Begin every test with a series of comments that describe your given/when/then. Then, one by one, convert those comments to actual code. Unless it's very basic, I begin *every* test in this way to gather my thoughts. https://t.co/67FtU9DmwH


🔥 If you're allowing a ?perPage= query param to be specified for your pagination results, LIMIT it! Particularly if you have a huge number of potential records. You can do this easily with the native min() PHP function. https://t.co/aNW7K09Zdt