diff --git a/README.md b/README.md index 689522e..d5a10ad 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,12 @@ You can attach multiple categories and tags to a post. Categories can be viewed ## Requirements +* PHP >= 8.2 * Laravel Nova >= 4.0 -* Laravel >= 8.0 +* Laravel >= 10.0 + +> **NOTE**: These instructions are for Laravel >= 10.0 and PHP >= 8.2 If you are using prior version, please +> see the [previous version's docs](https://github.com/novius/laravel-nova-news/tree/0.1.x). ## Installation diff --git a/composer.json b/composer.json index 17e25f1..0c53138 100644 --- a/composer.json +++ b/composer.json @@ -20,19 +20,19 @@ } ], "require": { - "php": "^8.1", - "illuminate/support": "^8.83.4|^9.3.1|^10.0", + "php": "^8.2", + "illuminate/support": "^10.0|^11.0", "laravel/nova": "^4.0", - "novius/laravel-nova-field-preview": "^1.0.0", - "novius/laravel-nova-publishable": "^2.0.0", - "novius/laravel-nova-translatable": "^0.0.5", + "novius/laravel-nova-field-preview": "^2.0", + "novius/laravel-nova-publishable": "^3.0", + "novius/laravel-nova-translatable": "^1.0", "spatie/laravel-sluggable": "^3.4", "waynestate/nova-ckeditor4-field": "^1.1" }, "require-dev": { - "laravel/pint": "^1.10", - "orchestra/testbench": "^8.5", - "pestphp/pest": "^2.8" + "laravel/pint": "^1.13", + "orchestra/testbench": "^8.24", + "pestphp/pest": "^2.34" }, "autoload": { "psr-4": { diff --git a/src/LaravelNovaNews.php b/src/LaravelNovaNews.php index bb55d00..1cb2682 100644 --- a/src/LaravelNovaNews.php +++ b/src/LaravelNovaNews.php @@ -12,9 +12,7 @@ class LaravelNovaNews extends Tool /** * Perform any tasks that need to happen when the tool is booted. */ - public function boot(): void - { - } + public function boot(): void {} /** * Build the menu that renders the navigation links for the tool. diff --git a/src/Nova/NewsCategory.php b/src/Nova/NewsCategory.php index 19f7b7d..f75865d 100644 --- a/src/Nova/NewsCategory.php +++ b/src/Nova/NewsCategory.php @@ -146,7 +146,7 @@ protected function ogFields(): array public function cards(NovaRequest $request): array { return [ - new Locales(), + new Locales, ]; } @@ -156,7 +156,7 @@ public function cards(NovaRequest $request): array public function filters(NovaRequest $request): array { return [ - new LocaleFilter(), + new LocaleFilter, ]; } diff --git a/src/Nova/NewsPost.php b/src/Nova/NewsPost.php index 238205a..dfc2d6b 100644 --- a/src/Nova/NewsPost.php +++ b/src/Nova/NewsPost.php @@ -250,7 +250,7 @@ protected function ogFields(): array public function cards(NovaRequest $request): array { return [ - new Locales(), + new Locales, ]; } @@ -260,8 +260,8 @@ public function cards(NovaRequest $request): array public function filters(NovaRequest $request): array { return [ - new LocaleFilter(), - new PublicationStatus(), + new LocaleFilter, + new PublicationStatus, ]; } diff --git a/src/Nova/NewsTag.php b/src/Nova/NewsTag.php index 3e9aad2..66e5de7 100644 --- a/src/Nova/NewsTag.php +++ b/src/Nova/NewsTag.php @@ -94,7 +94,7 @@ public function fields(NovaRequest $request): array public function cards(NovaRequest $request): array { return [ - new Locales(), + new Locales, ]; } @@ -104,7 +104,7 @@ public function cards(NovaRequest $request): array public function filters(NovaRequest $request): array { return [ - new LocaleFilter(), + new LocaleFilter, ]; }