diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..14eb424 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +/.github export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore +/phpunit.xml.dist export-ignore +/.idea export-ignore +/images export-ignore +/.package-lock.json export-ignore +/package.json export-ignore +/postcss.config.js export-ignore +/tailwind.config.js export-ignore \ No newline at end of file diff --git a/.gitignore b/.gitignore index cc235fd..e68c188 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /node_modules -/vendor \ No newline at end of file +/vendor +.idea diff --git a/README.md b/README.md index 2f03d25..0123f5e 100644 --- a/README.md +++ b/README.md @@ -23,11 +23,9 @@ To use the new 'Floating Theme' just pass the 'floating' key to the `setTheme()` ```php use FilamentStickyHeader\Facades\StickyHeader; -public function boot(): void +public function register(): void { - Filament::serving(function () { - StickyHeader::setTheme('floating'); - } + StickyHeader::setTheme('floating'); } ``` @@ -38,11 +36,9 @@ If you are using a custom Filament Theme you will need to disable the loading of ```php use FilamentStickyHeader\Facades\StickyHeader; -public function boot(): void +public function register(): void { - Filament::serving(function () { - StickyHeader::disableCss(); - } + StickyHeader::disableCss(); } ```