Home > Back-end >  How to link observer to another file in laravel?
How to link observer to another file in laravel?

Time:10-21

I write one observer called userObserver.php and I write one task file called DeleteTask.php which contains DB queries , now I want to make a link with the observer to the DeletTask.php file

CodePudding user response:

In laravel documentation it's mentioned observer is applied for models only.

  • Related