toJson() 공개 메소드

Convert the model instance to JSON.
public toJson ( integer $options ) : string
$options integer
리턴 string
예제 #1
0
파일: Icon.php 프로젝트: sirx/w0bm.com
 public function toJson($options = 0)
 {
     return parent::toJson($options);
 }
예제 #2
0
 /**
  * Called after a child model is deleted.
  *
  * @param  string    $key
  * @param  BaseModel $model
  *
  * @return void
  */
 public function postDeleteChild(Model $model, $relation)
 {
     if ($this->isRevisionEnabled()) {
         $revision = $this->prepareRevision($relation, $model->toJson(), null);
         $this->cleanupRevisions();
         $this->dbInsert($revision);
     }
 }
예제 #3
0
 public function toJson($options = 0)
 {
     return $this->model->toJson();
 }
예제 #4
0
 public function toJson($options = 0)
 {
     $this->getVisibleAttribute();
     return parent::toJson();
 }