1. Go to this page and download the library: Download vinbolt/laravel 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/ */
use Vinbolt\Sdk\VinboltClient;
class HomeController
{
public function __construct(private VinboltClient $vinbolt) {}
public function show()
{
return view('home', [
'page' => $this->vinbolt->pages->get('home'),
'header' => $this->vinbolt->site->header(),
]);
}
}