Customizations
Customizing The Media Disk
You can change the default disk on which the generated medias are being stored by changing the config file or updating your environment file. By default the generated images will be stored in the public disk. You may change it by updating the config file as follows.
or by adding an environment variable to your .env file.
Customizing The Media Prefix
You may want to change the directory to which the generated images are being stored. To do this, you can update the config file as follows.
Or by updating your environment file as follows
Customizing The View Template
You can get total control over how your open graph images are being generated by using your own view to generate the images. To do this, add your own view to the config file as below.
By doing this, Graphify will look for a view in resources/views/web/print/graphify-image.blade.php
Accessing The Model Instance
When you are within your custom view, you will have access to your model view $model
variable. So if you want to display anything like title, author name or published time, you can do so as follows.
Customizing The File Name
You can also chose how you want to name the saved files. To do this, just override the following method on your model.
Last updated