PHP code example of 64robots / laravel-notion

1. Go to this page and download the library: Download 64robots/laravel-notion 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/ */

    

64robots / laravel-notion example snippets


return [
    'access_token' => env('NOTION_ACCESS_TOKEN'),
];

use R64\LaravelNotion\Facades\Notion;

$database = Notion::databases()->retrieve('a65b5216-46cb-479b-961e-67cc7b05a56d');
bash
php artisan vendor:publish --provider="R64\LaravelNotion\NotionServiceProvider" --tag="laravel-notion-config"