/**
  * Handle the event.
  *
  * @param  ProjectUpdated  $event
  * @return void
  */
 public function handle(ProjectUpdated $event)
 {
     //check if the name is dirty
     if ($event->project->IsDirty('name')) {
         //if dirty update the dependency lookup date
         $lookup = DependencyLookup::where('subject_type', 'Project')->where('subject_id', $event->project->id)->first();
         $lookup->subject_name = $event->project->name;
         $lookup->save();
     }
 }
 /**
  * Handle the event.
  *
  * @param  ActionUpdated  $event
  * @return void
  */
 public function handle(ActionUpdated $event)
 {
     //check if the name is dirty
     if ($event->action->IsDirty('title')) {
         //if dirty update the dependency lookup date
         $lookup = DependencyLookup::where('subject_type', 'Action')->where('subject_id', $event->action->id)->first();
         $lookup->subject_name = $event->action->title;
         $lookup->save();
     }
 }