Order.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Factories\HasFactory;
  4. use Illuminate\Database\Eloquent\Model;
  5. class Order extends Model
  6. {
  7. use HasFactory;
  8. /**
  9. * The database table used by the model.
  10. *
  11. * @var string
  12. */
  13. protected $table = 'orders';
  14. /**
  15. * The database primary key value.
  16. *
  17. * @var string
  18. */
  19. protected $primaryKey = 'id';
  20. /**
  21. * Attributes that should be mass-assignable.
  22. *
  23. * @var array
  24. */
  25. protected $fillable = [
  26. 'order_number',
  27. 'user_id',
  28. 'angel_id',
  29. 'is_subscription',
  30. 'subscription_id',
  31. 'ref_number',
  32. 'customer_name',
  33. 'customer_email',
  34. 'customer_phone',
  35. 'source_latitude',
  36. 'source_longitude',
  37. 'destination_latitude',
  38. 'destination_longitude',
  39. 'flat_no',
  40. 'google_address',
  41. 'address',
  42. 'landmark',
  43. 'state_name',
  44. 'city_name',
  45. 'source_postal_code',
  46. 'destination_postal_code',
  47. 'source_google_place_id',
  48. 'destination_google_place_id',
  49. 'location_name',
  50. 'user_type',
  51. 'order_type',
  52. 'vehicle_number',
  53. 'table_number',
  54. 'pickup_type',
  55. 'assoonas',
  56. 'contact_less_delivery',
  57. 'order_description',
  58. 'order_assign_datetime',
  59. 'delivery_date',
  60. 'time_to_pack',
  61. 'delivery_time_slot',
  62. 'delivered_time',
  63. 'offer_percentage',
  64. 'offer_amount',
  65. 'tax_percentage',
  66. 'tax_amount',
  67. 'delivery_charge',
  68. 'order_sub_total',
  69. 'order_grand_total',
  70. 'cardfee_percentage',
  71. 'cardfee_price',
  72. 'payment_status',
  73. 'payment_method',
  74. 'payment_method_id',
  75. 'referral_wallet_id',
  76. 'referral_used',
  77. 'payment_wallet',
  78. 'paid_full',
  79. 'split_payment',
  80. 'wallet_amount',
  81. 'transaction_id',
  82. 'distance',
  83. 'angel_invoice',
  84. 'angel_invoice_number',
  85. 'angel_deliver_date',
  86. 'angel_charge',
  87. 'angel_cash_in_hand_status',
  88. 'failed_reason',
  89. 'voucher_code',
  90. 'voucher_id',
  91. 'voucher_mode',
  92. 'voucher_percentage',
  93. 'voucher_amount',
  94. 'status',
  95. 'order_mode',
  96. 'accepted_by',
  97. 'ip',
  98. 'otp'
  99. ];
  100. }