BaseModel.php 532 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Base;
  3. use Illuminate\Database\Eloquent\Model;
  4. use DateTimeInterface;
  5. /**
  6. * App\Base\BaseModel
  7. *
  8. * @method static \Illuminate\Database\Eloquent\Builder|BaseModel newModelQuery()
  9. * @method static \Illuminate\Database\Eloquent\Builder|BaseModel newQuery()
  10. * @method static \Illuminate\Database\Eloquent\Builder|BaseModel query()
  11. * @mixin \Eloquent
  12. */
  13. class BaseModel extends Model
  14. {
  15. protected $perPage = 10;
  16. protected $casts = [
  17. "extra" => "array",
  18. ];
  19. protected $guarded = ["*"];
  20. }