Skip to content

Commit

Permalink
Merge pull request #16 from novius/upgrade/laravel-11
Browse files Browse the repository at this point in the history
Upgrade - Laravel 11
  • Loading branch information
felixgilles authored Aug 1, 2024
2 parents 9a39874 + 3f96b0d commit 410b39d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 19 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 1 addition & 3 deletions src/LaravelNovaNews.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/Nova/NewsCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected function ogFields(): array
public function cards(NovaRequest $request): array
{
return [
new Locales(),
new Locales,
];
}

Expand All @@ -156,7 +156,7 @@ public function cards(NovaRequest $request): array
public function filters(NovaRequest $request): array
{
return [
new LocaleFilter(),
new LocaleFilter,
];
}

Expand Down
6 changes: 3 additions & 3 deletions src/Nova/NewsPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ protected function ogFields(): array
public function cards(NovaRequest $request): array
{
return [
new Locales(),
new Locales,
];
}

Expand All @@ -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,
];
}

Expand Down
4 changes: 2 additions & 2 deletions src/Nova/NewsTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function fields(NovaRequest $request): array
public function cards(NovaRequest $request): array
{
return [
new Locales(),
new Locales,
];
}

Expand All @@ -104,7 +104,7 @@ public function cards(NovaRequest $request): array
public function filters(NovaRequest $request): array
{
return [
new LocaleFilter(),
new LocaleFilter,
];
}

Expand Down

0 comments on commit 410b39d

Please sign in to comment.