This code will make more sense if you will check my blog post on Medium.
https://faridmovsumov.medium.com/notion-api-laravel-authentication-example-29c548a01b52
Add your client id and client secret to .env file.
NOTION_CLIENT_ID=************************
NOTION_CLIENT_SECRET=*********************