🔥 With Laravel Mix, if you're building Sass files, you can pass a list of PostCSS plugins as the fourth parameter that will only apply to the given file.
This is useful if you want one process to handle multiple things as usually the postCss method will apply to all CSS files https://t.co/B67M4kWOX4
Pro tip for #Laravel @laravelphp developers that use the Ide Helper. Just came with this idea today: listen for MigrationsEnded event and then call ide-helper:models command to generate the helper file automatically after any migrations. #php #ProTip https://t.co/ggwE60m1Q7
Piggybacking off the last 🔥 tip, most Blade templates simply use the `if` directive.
However, there are so many more Blade directives available. These are not only more expressive, but often streamline the code.
Here's a side-by-side comparison: https://t.co/Z2Edmf8kDO
Did you know that you can use the DB facade to create a Partition Metric in Laravel Nova to breakdown email domains? #ProTip https://t.co/eTCoadCWFW
🔥 Have you heard of the 'onbeforeunload' event?
When a user clicks back, you can use onbeforeunload to prompt the user. Returning a value will change the default message in the popup.
Great for sites that handle a lot of data input!
👨🔧 Finally got sick of seeing this error when pushing new branches. Turns out a simple config option allows `git push` to do the heavy lifting. Why is this not the default?!
Do yourself a favour 👇 https://t.co/hBJa5JJbIm
#Laravel tip of the day: how to calculate the sum of ALL records, if you only have a PAGINATED collection? You calculate sum BEFORE the pagination, but from the same query. https://t.co/lpPps70Vqs