I mentioned this Laravel News post because the cookie consent package it covers aims to be a quick, low-friction way to ship GDPR-style consent. I like that it supports categories and can block scripts until the right consent is given.
You'll be taken to Laravel-news to complete your purchase.