If you've built websites for clients for any length of time, you've probably had some version of this conversation.
The site launches, everyone is happy, and then a week later the client emails to ask whether they need one of those cookie banners they keep seeing on other sites. A few months after that, someone fills out the contact form asking for a copy of every bit of data the business has on them, and you realize there isn't a process for that at all.
When I was building sites in WordPress, this was mostly a solved problem. You installed a well-reviewed plugin, adjusted a few settings and moved on to the next project.
When I moved over to Laravel, privacy turned into a patchwork. Every project meant stitching together a JavaScript cookie widget, a handful of custom export scripts and a lot of good intentions, and I never felt great about the result.
The Privacy package is my answer to that. It brings cookie consent, data subject rights, breach notification and support for multiple privacy regulations together in one package, and it works whether your front end is built with Livewire, React or Vue.
What the Privacy package is
ArtisanPack UI Privacy is an MIT-licensed privacy and data protection toolkit for Laravel. Version 1.0 shipped in June, and the current release, 1.1.0, followed in July with an update that brought its hooks in line with the rest of the ecosystem.
At its core, the package handles three jobs. It asks visitors for consent and remembers their choices, gives people a way to request, export, correct or delete their data, and gives you an admin dashboard to keep track of all of it.
Each piece ships as Livewire, React and Vue components, and all three talk to the same JSON API. That means validation, rate limiting and request verification behave the same way no matter which stack you choose.
It's built for freelancers and agencies working on client sites that collect any kind of personal data, which, once you count analytics and contact forms, is just about every site out there.
What's in the box
Cookie consent that actually controls your scripts
The cookie banner gives visitors accept all, reject all and customize options, with an inline preferences panel for picking individual categories. The installer seeds four categories by default: Strictly Necessary, which is always on, plus Functional, Analytics and Marketing.
You can rename, remove or add to those categories in the config file. Consent can live in a cookie, the database or both, and when a guest who already made their choices logs in, the package copies those choices over to their account automatically.
A complete data subject rights workflow
A ready-made request form lets people file access, export, deletion and rectification requests. Every request goes through verification, every action lands in an audit log, and the admin queue highlights requests that are getting close to their deadline.
If you'd like, the package can also process verified access and export requests on a schedule so you don't have to.
Support for more than one regulation
GDPR and CCPA each get their own regulation class that knows the rights, response deadlines and breach windows involved. That covers details like GDPR's 30-day response deadline and 72-hour breach notification window, along with CCPA's 45-day response deadline and "Do Not Sell" link requirement.
LGPD and PIPEDA are available as well, though they're turned off by default and use a more general set of rules. To work out which regulation applies to a given visitor, a built-in geolocation service can look up their region through ip-api, MaxMind or Cloudflare's country header.
An admin dashboard for the whole thing
The dashboard includes a consent manager with filters and CSV or JSON exports, a request manager, compliance reports and a breach manager. Access runs through a manage-privacy gate, so you decide who on the team gets to see it.
Tools for when things change
If a breach happens, the package includes notification templates for both the supervisory authority and affected users based on GDPR Articles 33 and 34.
When you update your privacy policy, a re-consent banner asks users to accept the new terms. Expired consents are cleaned up by a scheduled command that runs nightly by default.
Getting it installed
Installation takes two commands:
composer require artisanpack-ui/privacy
php artisan privacy:install
The install command does most of the setup work for you. It publishes the config file, migrations, views and admin layout, runs the migrations, seeds the default consent categories and clears your caches. If you're installing as part of a CI/CD pipeline, add --no-interaction --force so it runs without stopping to ask questions.
You'll need PHP 8.2 or higher for Laravel 10, 11 or 12, or PHP 8.3 or higher for Laravel 13. The package also requires Livewire, and Composer will pull it in for you if your app doesn't already have it.
Both Livewire 3.5 and Livewire 4 are supported, so you don't have to upgrade an existing app just to use it.
Putting it to work
Load analytics only after someone says yes
This is the job most people install a privacy tool for in the first place. Drop the banner into your layout, then wrap any tracking scripts in the @hasConsent directive so they only render once the visitor has opted in to that category:
<livewire:privacy-cookie-banner />
@hasConsent('analytics')
<script src="https://analytics.example.com/tracker.js"></script>
@endhasConsent
If your scripts don't live in Blade, such as snippets that come from a tag manager, you can mark them as placeholders with <script type="text/plain" data-privacy-category="analytics">. The window.PrivacyConsent JavaScript API has an activatePlaceholderScripts() method that turns those placeholders into working scripts once consent is granted.
For entire pages that depend on a category, the privacy.consent middleware keeps visitors out until they've opted in:
Route::middleware('privacy.consent:analytics')->group(function () {
// Routes that rely on analytics cookies
});
Handle a "send me my data" request
You can give users a way to file requests by adding the request form to an account or privacy page with <livewire:privacy-data-request-form />. If you'd rather create a request from your own code, the facade handles that in one line:
Privacy::dataRequests()->createExportRequest($user);
From there, the privacy:process-requests command can sweep up verified access and export requests on a schedule, run the export, mark the request complete, write the audit entry and notify the person who asked. It accepts --type, --limit and --dry-run options, so you can test it before letting it run on its own.
Find the personal data you forgot you were storing
This is my favorite part of the package, and it starts with the HasPersonalData trait. Add it to any model that holds personal information and list the columns that count, and the package will include those fields in exports and consider them when handling deletions:
use ArtisanPackUI\Privacy\Concerns\HasPersonalData;
class Customer extends Model
{
use HasPersonalData;
protected array $personalDataFields = [ 'email', 'name', 'phone' ];
}
To help you find those columns in the first place, php artisan privacy:scan looks through your Eloquent models for fields that look like personal data. You can limit it to a single model with --model, save what it finds with --save and output the results as a table, JSON or CSV with --format.
Running it on an older project is a good way to discover the phone number column somebody added three years ago and never mentioned.
Use it with React or Vue
If your front end is built with React or Vue, the same features are available as components from the companion JavaScript package:
// React
import { CookieBanner, ConsentPreferences } from '@artisanpack-ui/privacy/react'
// Vue
import CookieBanner from '@artisanpack-ui/privacy/vue/CookieBanner.vue'
There's also a useConsent hook for React and a useConsent composable for Vue when you want to check consent inside your own components.
Making it fit your app
Like the rest of ArtisanPack UI, the Privacy package uses the Hooks package for WordPress-style extensibility. It defines 11 hooks under the ap.privacy namespace, including exportData, deleteData, anonymizeData, consentCategories, consentGranted and consentRevoked.
The export and deletion hooks are the ones I expect most people to reach for, since they let your own code or packages add their data to an export, or clean it up during a deletion, without touching the Privacy package itself. If you were using the older privacy.* hook names before version 1.1.0, those still work as aliases until the next major release.
The package also fires standard Laravel events for the moments you're most likely to care about, including ConsentGiven, ConsentWithdrawn, DataExportRequested, DataDeletionRequested, DataBreach and PrivacyPolicyUpdated.
It ships with default listeners for logging consent activity and notifying admins. You can register your own listeners in your app's service provider if you want to send a Slack message, open a ticket or kick off some other workflow.
What it won't do for you
I want to be upfront about this part. The Privacy package gives you the tools to handle consent and data requests properly, but it isn't legal advice, and installing it doesn't make a site compliant on its own.
You'll still need to write the privacy policy, decide which cookie categories fit your client's site and figure out which regulations actually apply to the business. If a client has real legal exposure, that's a conversation for them and a lawyer.
There's also one thing the package deliberately leaves to a person. The privacy:process-requests command will handle verified access and export requests automatically, but it skips deletion requests on purpose.
Deleting someone's data can't be undone, so those requests wait in the admin queue until somebody on your team reviews and approves them.
Give it a try
Privacy work tends to get pushed to the end of a project, usually right around the time a client asks about it. My hope is that the Privacy package turns it into something you can set up in an afternoon at the start instead, with more than 400 Pest tests behind it so you can trust it to keep working as your app grows.
You'll find setup guides for cookie consent, data subject rights, the admin dashboard, multi-regulation support and React and Vue integration in the documentation, and the source code lives on GitHub.
If you run into a problem or have an idea for what it should do next, open an issue there. I'd love to hear how you're using it.

