Request.php 437 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. class Request extends Model
  6. {
  7. use HasFactory;
  8. /**
  9. * The attributes that should be cast to native types.
  10. *
  11. * @var array
  12. */
  13. protected $casts = [
  14. 'form' => 'array',
  15. 'workflow' => 'array',
  16. 'currentTask' => 'array',
  17. ];
  18. protected $guarded = ['id'];
  19. }