Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-frey authored Nov 9, 2024
1 parent f68de3d commit 5ded2d8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ You can install the package via composer:
composer require guava/filament-modal-relation-managers
```

## Assets

Make sure you have a custom filament theme installed (more info in the official documentation [here](https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme)) and add the following to your theme's `tailwind.config.js` content property, so that our CSS overrides are correctly built:

```js
export default {
//...
content: [
// ...
'./vendor/guava/filament-modal-relation-managers/resources/**/*.blade.php',
]
}
```

## Usage

First, for any relation manager that you want to be able to embed inside modals, add the `CanBeEmbeddedInModals` trait:
Expand Down

0 comments on commit 5ded2d8

Please sign in to comment.