{ All snippets }

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

Walkabout JMac

Walkabout JMac @gonedark

⚗️ Need to control a defined constant in your tests? You can use the <const> element in your phpunit.xml file to define a dummy value your code will use when the tests run. https://t.co/cMMpWOJBzt

Stefan Bauer

Stefan Bauer @stefanbauerme

🤩 Here is another thing I noticed lately. Did you know you @laravelphp introduced a new artisan command in v6? `php artisan db:wipe` to drop all tables, views, and types? You can pass the options `--drop-views` and `--drop-types` (Postgres only). This is awesome!

Wes Bos

Wes Bos @wesbos

🔥 Need elements to overlap? Assigning multiple elements the same CSS Grid row and column is a good alternative to absolute positioning. https://t.co/XbtqHwzcTe

Laravel Daily

Laravel Daily @DailyLaravel

#Laravel tip of the day: if you want to create a middleware and run it on most of your pages, so on all of them except one or two - you can specify the exceptions in Middleware class itself, in $except array. https://t.co/PuhPcHFvVv

Wes Bos

Wes Bos @wesbos

👆🏻Intl is aware of language differences, so it will either detect or be passed a language tag. Swedish uses ä as the 28th letter, so it respects that: https://t.co/pf6agoYxZV

Barry vd. Heuvel

Barry vd. Heuvel @barryvdh

Quick reminder: you can run `composer outdated` to get a quick overview of available updates. Red: can be updated with current constraints. Yellow: Update available that doesn't match your current requirements. https://t.co/DpyAHgUMIb