Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored May 8, 2024
1 parent 6d9228a commit 24be616
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion DOCUMENTATION.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
## Installation

1. Require Cookie Notice as a Composer dependency:

```
composer require duncanmcclean/cookie-notice
```
2. Publish the addon's configuration file:
```
php artisan vendor:publish --tag=cookie-notice-config
```
3. Add the Cookie Notice tags to your layout(s). Make sure the `{{ cookie_notice:scripts }}` tag is in the `<head>` and the `{{ cookie_notice:widget }}` tag is near the top of the `<body>`.
3. Add the Cookie Notice tags to your layout(s). Make sure the `{{ cookie_notice:scripts }}` tag is in the `<head>` and the `{{ cookie_notice:widget }}` tag is near the top of the `<body>`:
```antlers
<!doctype html>
Expand Down Expand Up @@ -238,15 +242,19 @@ To upgrade to v9.x, you'll need to make some manual changes.

1. Delete the `cookie-notice.php` file from your `config` directory.
2. In your `composer.json` file, update the `duncanmcclean/cookie-notice` version to `^9.0`.

```json
"duncanmcclean/cookie-notice": "^9.0"
```

3. Run `composer update duncanmcclean/cookie-notice --with-dependencies`.
4. Re-publish the addon's configuration file and update it as needed:

```
php artisan vendor:publish --tag=cookie-notice-config
```
5. Make sure you're using **both** the `{{ cookie_notice:scripts }}` and `{{ cookie_notice }}` tags in your site's layout(s):
```antlers
<!doctype html>
<html>
Expand Down

0 comments on commit 24be616

Please sign in to comment.