Skip to content

Commit

Permalink
[source]: Added Laravel Nova 5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Jul 11, 2024
1 parent b52700f commit a6cf686
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
matrix:
nova:
- { branch: "4.x", version: "4.0" }
- { branch: "5.x", version: "5.0" }

name: nova (${{ matrix.nova.branch }})

Expand Down
1 change: 1 addition & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Plugin extends Provider

Plugins\Nova\LogViewer\Main::class,
Plugins\Nova\V4::class,
Plugins\Nova\V5::class,

Plugins\Nova\DuskSuite\Main::class,

Expand Down
21 changes: 21 additions & 0 deletions src/Plugins/Nova/V5.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace LaravelLang\Lang\Plugins\Nova;

use LaravelLang\Publisher\Plugins\Plugin;

class V5 extends Plugin
{
protected ?string $vendor = 'laravel/nova';

protected string $version = '^5.0';

public function files(): array
{
return [
'nova/5.x/nova.json' => 'vendor/nova/{locale}.json',

'nova/5.x/validation.php' => 'vendor/nova/{locale}/validation.php',
];
}
}

0 comments on commit a6cf686

Please sign in to comment.