Skip to content

Commit 9f855d1

Browse files
authored
temporarily disable nova functionality until it can be updated
1 parent 87820b7 commit 9f855d1

File tree

1 file changed

+50
-50
lines changed

1 file changed

+50
-50
lines changed

src/Providers/Nova.php

+50-50
Original file line numberDiff line numberDiff line change
@@ -7,60 +7,60 @@
77

88
class Nova extends ServiceProvider
99
{
10-
protected $namespace = 'GeneaLabs\LaravelGovernor\Http\Controllers';
10+
// protected $namespace = 'GeneaLabs\LaravelGovernor\Http\Controllers';
1111

12-
public function boot()
13-
{
14-
$this->loadViewsFrom(__DIR__.'/../../resources/views', 'genealabs-laravel-governor');
12+
// public function boot()
13+
// {
14+
// $this->loadViewsFrom(__DIR__.'/../../resources/views', 'genealabs-laravel-governor');
1515

16-
$this->app->booted(function () {
17-
$this->routes();
18-
});
16+
// $this->app->booted(function () {
17+
// $this->routes();
18+
// });
1919

20-
if (class_exists("Laravel\Nova\Resource")) {
21-
\GeneaLabs\LaravelGovernor\Nova\GovernorAction::$model = config("genealabs-laravel-governor.models.action");
22-
\GeneaLabs\LaravelGovernor\Nova\GovernorAssignment::$model = config("genealabs-laravel-governor.models.assignment");
23-
\GeneaLabs\LaravelGovernor\Nova\GovernorEntity::$model = config("genealabs-laravel-governor.models.entity");
24-
\GeneaLabs\LaravelGovernor\Nova\GovernorGroup::$model = config("genealabs-laravel-governor.models.group");
25-
\GeneaLabs\LaravelGovernor\Nova\GovernorOwnership::$model = config("genealabs-laravel-governor.models.ownership");
26-
\GeneaLabs\LaravelGovernor\Nova\GovernorPermission::$model = config("genealabs-laravel-governor.models.permission");
27-
\GeneaLabs\LaravelGovernor\Nova\GovernorRole::$model = config("genealabs-laravel-governor.models.role");
28-
\GeneaLabs\LaravelGovernor\Nova\GovernorTeam::$model = config("genealabs-laravel-governor.models.team");
29-
\GeneaLabs\LaravelGovernor\Nova\GovernorTeamInvitation::$model = config("genealabs-laravel-governor.models.invitation");
30-
\GeneaLabs\LaravelGovernor\Nova\GovernorUser::$model = config("genealabs-laravel-governor.models.auth");
31-
\Laravel\Nova\Nova::serving(function (ServingNova $event) {
32-
\Laravel\Nova\Nova::script('genealabs-laravel-governor', __DIR__ . '/../../dist/js/tool.js');
33-
\Laravel\Nova\Nova::style('genealabs-laravel-governor', __DIR__ . '/../../dist/css/tool.css');
34-
\Laravel\Nova\Nova::resources([
35-
\GeneaLabs\LaravelGovernor\Nova\GovernorAction::class,
36-
\GeneaLabs\LaravelGovernor\Nova\GovernorAssignment::class,
37-
\GeneaLabs\LaravelGovernor\Nova\GovernorEntity::class,
38-
\GeneaLabs\LaravelGovernor\Nova\GovernorGroup::class,
39-
\GeneaLabs\LaravelGovernor\Nova\GovernorOwnership::class,
40-
\GeneaLabs\LaravelGovernor\Nova\GovernorPermission::class,
41-
\GeneaLabs\LaravelGovernor\Nova\GovernorRole::class,
42-
\GeneaLabs\LaravelGovernor\Nova\GovernorUser::class,
43-
\GeneaLabs\LaravelGovernor\Nova\GovernorTeam::class,
44-
\GeneaLabs\LaravelGovernor\Nova\GovernorTeamInvitation::class,
45-
]);
46-
});
47-
}
48-
}
20+
// if (class_exists("Laravel\Nova\Resource")) {
21+
// \GeneaLabs\LaravelGovernor\Nova\GovernorAction::$model = config("genealabs-laravel-governor.models.action");
22+
// \GeneaLabs\LaravelGovernor\Nova\GovernorAssignment::$model = config("genealabs-laravel-governor.models.assignment");
23+
// \GeneaLabs\LaravelGovernor\Nova\GovernorEntity::$model = config("genealabs-laravel-governor.models.entity");
24+
// \GeneaLabs\LaravelGovernor\Nova\GovernorGroup::$model = config("genealabs-laravel-governor.models.group");
25+
// \GeneaLabs\LaravelGovernor\Nova\GovernorOwnership::$model = config("genealabs-laravel-governor.models.ownership");
26+
// \GeneaLabs\LaravelGovernor\Nova\GovernorPermission::$model = config("genealabs-laravel-governor.models.permission");
27+
// \GeneaLabs\LaravelGovernor\Nova\GovernorRole::$model = config("genealabs-laravel-governor.models.role");
28+
// \GeneaLabs\LaravelGovernor\Nova\GovernorTeam::$model = config("genealabs-laravel-governor.models.team");
29+
// \GeneaLabs\LaravelGovernor\Nova\GovernorTeamInvitation::$model = config("genealabs-laravel-governor.models.invitation");
30+
// \GeneaLabs\LaravelGovernor\Nova\GovernorUser::$model = config("genealabs-laravel-governor.models.auth");
31+
// \Laravel\Nova\Nova::serving(function (ServingNova $event) {
32+
// \Laravel\Nova\Nova::script('genealabs-laravel-governor', __DIR__ . '/../../dist/js/tool.js');
33+
// \Laravel\Nova\Nova::style('genealabs-laravel-governor', __DIR__ . '/../../dist/css/tool.css');
34+
// \Laravel\Nova\Nova::resources([
35+
// \GeneaLabs\LaravelGovernor\Nova\GovernorAction::class,
36+
// \GeneaLabs\LaravelGovernor\Nova\GovernorAssignment::class,
37+
// \GeneaLabs\LaravelGovernor\Nova\GovernorEntity::class,
38+
// \GeneaLabs\LaravelGovernor\Nova\GovernorGroup::class,
39+
// \GeneaLabs\LaravelGovernor\Nova\GovernorOwnership::class,
40+
// \GeneaLabs\LaravelGovernor\Nova\GovernorPermission::class,
41+
// \GeneaLabs\LaravelGovernor\Nova\GovernorRole::class,
42+
// \GeneaLabs\LaravelGovernor\Nova\GovernorUser::class,
43+
// \GeneaLabs\LaravelGovernor\Nova\GovernorTeam::class,
44+
// \GeneaLabs\LaravelGovernor\Nova\GovernorTeamInvitation::class,
45+
// ]);
46+
// });
47+
// }
48+
// }
4949

50-
protected function routes()
51-
{
52-
if ($this->app->routesAreCached()) {
53-
return;
54-
}
50+
// protected function routes()
51+
// {
52+
// if ($this->app->routesAreCached()) {
53+
// return;
54+
// }
5555

56-
Route::middleware(['nova', Authorize::class])
57-
->prefix("genealabs/laravel-governor/nova")
58-
->namespace($this->namespace . "\Nova")
59-
->group(__DIR__ . '/../../routes/nova.php');
60-
}
56+
// Route::middleware(['nova', Authorize::class])
57+
// ->prefix("genealabs/laravel-governor/nova")
58+
// ->namespace($this->namespace . "\Nova")
59+
// ->group(__DIR__ . '/../../routes/nova.php');
60+
// }
6161

62-
public function register()
63-
{
64-
//
65-
}
62+
// public function register()
63+
// {
64+
// //
65+
// }
6666
}

0 commit comments

Comments
 (0)