PHP code example of geofftech / laravel-opengraph
1. Go to this page and download the library: Download geofftech/laravel-opengraph library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
geofftech / laravel-opengraph example snippets
public function render(OpenGraph $og)
{
if (!$this->project->is_published) {
abort(404);
}
$og->title($this->project->name);
return view('livewire.pages.project-show-page');
}