Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Second argument to track() should be either file or directory resource #33

Open
kailasb10 opened this issue Jul 14, 2021 · 0 comments
Open

Comments

@kailasb10
Copy link

create the command in laravel 8

$watcher = new ResourceWatcher;
$watcher->track('folder.watch', 'doc_file/',FilesystemEvent::CREATE);

but when supervisor run got below error

Lurker\Exception\InvalidArgumentException
  Second argument to track() should be either file or directory resource, but got "doc_files/"

"doc_files" is the folder under storage folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant