💡 in Laravel you can do things as the framework is terminating (after request has been processed!)
You can do this in a middleware, using App::terminating with callback or natively with PHP using register_shutdown_function https://t.co/Z6tzN8jdkd
🔥 When working with position:absolute and want to move an element around in relation to the natural content flow…
Use margin instead of `top/left/right/bottom`.
🔥 `box-shadow` doesn't work well with transparent images. `filter: drop-shadow` does what you'd expect, adding a shadow to the image's contents.
filter: drop-shadow(1px 2px 3px black);
CSS filters are so rad 🥰
Pen: https://t.co/rVKgSlijt1 https://t.co/6rwc7gG1Ro
🔥 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