您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

AbstractModel.php 346B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: adrien.gandarias
  5. * Date: 08/04/2015
  6. * Time: 10:00
  7. */
  8. namespace App\Http\DBO;
  9. use Illuminate\Database\Eloquent\Model;
  10. abstract class AbstractModel implements \JsonSerializable {
  11. /**
  12. * @return string
  13. */
  14. public function __toString()
  15. {
  16. return json_encode($this);
  17. }
  18. }