DOModel.php 527 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * Class Model
  6. * @package App\Model
  7. */
  8. class DOModel extends Model
  9. {
  10. public $original = [];
  11. public $timestamps = false;
  12. public function __construct($tabel = null, array $attributes = [])
  13. {
  14. parent::__construct($attributes);
  15. //
  16. if (is_string($tabel)) {
  17. $this->setTable($tabel);
  18. }
  19. }
  20. public function setTimestamps($timestamps)
  21. {
  22. $this->timestamps = $timestamps;
  23. }
  24. }