Generating open graph images will be made easy with the use of this package.
See the documentation for detailed installation and usage instructions.
If the model preparation is done correctly, an OG Image will be created when a new record is created.
To manually trigger OG Image generation, you can call generateGraphify() method on your model instance as below.
$yourModel->generateGraphify();
To retreive a generated OG image, you can use the below methods.
$yourModel->graphify_image;
$yourModel->og_image_url;
// Or if you have a custom image field
$yourModel->your_custom_og_image_url;
The MIT License (MIT). Please see License File for more information.