Skip to content

Commit

Permalink
Register optimize commands (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgaal authored Oct 22, 2024
1 parent e409a5b commit fab1c51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/LaravelDataServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,12 @@ public function packageBooted(): void
if ($enableVarDumperCaster) {
(new VarDumperManager())->initialize();
}

if (method_exists($this, 'optimizes')) {
$this->optimizes(
optimize: 'data:cache-structures',
key: 'laravel-data',
);
}
}
}

0 comments on commit fab1c51

Please sign in to comment.