unsetEventDispatcher() public static method

Unset the event dispatcher for models.
public static unsetEventDispatcher ( ) : void
return void
コード例 #1
0
 /**
  * Tear down Eloquent.
  */
 public static function tearDownAfterClass()
 {
     Eloquent::unsetEventDispatcher();
     Eloquent::unsetConnectionResolver();
 }
コード例 #2
0
 /**
  * Disable model events.
  */
 public function disableModelEvents()
 {
     $this->modelEventsDisabled = true;
     Model::unsetEventDispatcher();
 }
コード例 #3
0
 public function tearDown()
 {
     m::close();
     Illuminate\Database\Eloquent\Model::unsetEventDispatcher();
     Carbon\Carbon::resetToStringFormat();
 }