コード例 #1
0
 public function destroy($id)
 {
     $this->deleteTransition(Transition::findOrFail($id));
     return $this->responseNoContent();
 }
 /**
  * @param $command
  * @return static
  */
 public function handle($command)
 {
     $transition = Transition::create(['flow_id' => $command->flow->id, 'step_from_id' => $command->from->id, 'step_to_id' => $command->to->id]);
     event(new TransitionWasCreated($transition));
     return $transition;
 }