{ All snippets }

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

Taylor Otwell 🏝

Taylor Otwell 🏝 @taylorotwell

This is something I don't think we document well enough. If you prefer a "Models" directory... you can do things like php artisan make:policy PhotoPolicy --model=Models/Photo.... php artisan make:model Models/Photo... etc. All works fine! 🥰 https://t.co/ZykVwAbpgH

Steve Schoger

Steve Schoger @steveschoger

🔥 One small design detail that new designers often overlook is letter-spacing. Tricks like making headlines slightly condensed or giving small uppercase text a bit more space can go a long way towards giving a design that final level of polish. https://t.co/9Ed60pNf4p

Paul Redmond 🇺🇸

Paul Redmond 🇺🇸 @paulredmond

🔥 If you want to make assertions on JSON returned from Laravel's API Resources, get the values wrapped in {'data': {}} by passing the 'data' key: https://t.co/y0CAIfYIW1

Rias Van der Veken

Rias Van der Veken @Riasvdv

🔥 Don't want Laravel Mix complaining about the manifest during your CI tests and don't want to compile them to save time? Add this to your base TestCase https://t.co/Yuip8vL6cq

Jeffrey Way

Jeffrey Way @jeffrey_way

So happy to finally have arrow functions in PHP. Heads up that, if you use PHPStorm (2019.3), you can opt+enter to auto-switch between traditional closures and arrow functions.

Jeff Madsen

Jeff Madsen @codebyjeff

Today I learned: Vue (and prolly all js frameworks) can pass functions as props. Meaning, if you have a generic child component, you can *inject* things like validation rules. Just like a real language! I'll do a quick code blog explaining more later on. https://t.co/3SqaWXbG8f

Wes Bos

Wes Bos @wesbos

🔥 background-position can take four values which allows you to anchor from a specific corner and then skirt it around from there. https://t.co/fxJyj91Y2n

CSS