Goods.php 651 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of ibrand/favorite.
  4. *
  5. * (c) GuoJiangClub <https://www.ibrand.cc>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace GuoJiangClub\Component\Favorite\Test;
  11. use Illuminate\Database\Eloquent\Model;
  12. class Goods extends Model
  13. {
  14. protected $guarded = ['id'];
  15. /**
  16. * Address constructor.
  17. *
  18. * @param array $attributes
  19. */
  20. public function __construct(array $attributes = [])
  21. {
  22. parent::__construct($attributes);
  23. $prefix = config('ibrand.app.database.prefix', 'ibrand_');
  24. $this->setTable($prefix . 'goods');
  25. }
  26. }