Tag: PHP

How to prepare Local HTTPS Server via PHP built-in server using Stunnel on Windows

Sometimes, for a quick and very small project development we need a secure localhost connection.

How to use different markdown template layout for another Mailable in Laravel

Sometime happen that we need absolutely different layouts for newsletters and subscription email and at the same time use the Laravel’s built-in markdown templating.

How to sanitize/escape raw SQL query in Laravel

How to get previous week’s first day with Carbon in Laravel

Actually, it’s very easy using the carbon: The same is with current week’s first day:

How to remove users list from sitemap in WordPress (the right way)

As you might know in WordPress, under https://yourdomain/sitemap.xml all users are exported through the dedicated xml url, list like so: