/**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     ProjectTask::created(function ($task) {
         Event::fire(new TaskWasIncluded($task));
     });
     ProjectTask::updated(function ($task) {
         Event::fire(new TaskWasUpdated($task));
     });
 }
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     ProjectTask::created(function ($task) {
         event(new TaskWasIncluded($task));
     });
     ProjectTask::updated(function ($task) {
         event(new TaskWasChanged($task));
     });
 }
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     if (app()->runningInConsole()) {
         return;
     }
     ProjectTask::created(function ($task) {
         Event::fire(new TaskWasIncluded($task));
     });
     ProjectTask::updated(function ($task) {
         Event::fire(new TaskChanged($task));
     });
 }
 /**
  * Bootstrap any application services.
  *
  * @return void
  */
 public function boot()
 {
     #tentativa frustrada de adicionar o owner como member
     /*Project::saved(function($project){
           dd($project);
       });*/
     ProjectTask::created(function ($task) {
         //event();
         Event::fire(new TaskWasIncluded($task));
     });
     ProjectTask::updated(function ($task) {
         //event();
         if ($task->status == 2) {
             Event::fire(new TaskWasConcluded($task));
         } else {
             Event::fire(new TaskWasUpdated($task));
         }
         //if($tas)
     });
 }