{ All snippets }

Tweetsnippet is a curated list of tips and tricks from Twitter. Currently we have 496 snippets. Help by contributing here!

Laravel's magic can sometimes be counterproductive when auto-completion stops working. Model resources are a great example, where `$this->` can access the model's properties. @sebdedeyne gave me the great tip to use the `mixin` docblock to solve that issue! https://t.co/VQpX4HmsIl

Simon Kollross

Simon Kollross @skollro

🔥 Want to use cascading deletes/updates at database level but you've forgot to add them in your inital migrations? Just recreate the foreign keys in a new #Laravel migration 👍🏻 https://t.co/dcuB2SOT1O

Derrick Reimer

Derrick Reimer @derrickreimer

🔥 For a little extra polish, add a background color to your <body> and different background color on your content wrapper to reveal a surprise splash of color when over-scroll happens. 🎨 https://t.co/k6uCV9AyKT

Jason McCreary

Jason McCreary @gonedark

🔥 Pushing yourself to remove comments is one of the best drivers towards clean code. Here's a few tips on how to spot and replace comments that may be unnecessary… https://t.co/STIK6AIKXt