For Artisan School, I wanted to create custom Open Graph images for each video page. When somebody shares a link on social media, platforms like Facebook and Twitter use the OG image to represent the shared link. I’ll show you how to use Browsershot and Tailwind CSS to generate and save the OG images.
PHP
Preventing Destructive Commands from Running in Laravel
Read about how to use the IlluminateConsoleProhibitable trait to prevent destructive commands from running in your Laravel application. We’ll also look at how to prevent your own custom Artisan commands from running using this trait. Read more…