Skip to content

Commit

Permalink
Tweaks readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Jan 21, 2025
1 parent 5c93382 commit 5f5fbe1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Don't forget to enable it in your `php.ini`. Since this package is for local dev

use HotwiredLaravel\Hotreload\Hotreload;

if (app()->environment('local')) {
if (app()->environment('local') && class_exists(Hotreload::class)) {
Hotreload::withInotifyWatcher();
}
```
Expand Down Expand Up @@ -89,7 +89,7 @@ You may configure additional paths by calling the respective method on the `Hotr

use HotwiredLaravel\Hotreload\Hotreload;

if (app()->environment('local')) {
if (app()->environment('local') && class_exists(Hotreload::class)) {
Hotreload::addHtmlPath(resource_path('images'));
Hotreload::addCssPath(resource_path('sass'));
Hotreload::addStimulusPath(resource_path('js/bridge'));
Expand Down

0 comments on commit 5f5fbe1

Please sign in to comment.