| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\ModelLogChanging;
- use Illuminate\Database\Eloquent\Relations\HasOne;
- class ReceivingTask extends Model
- {
- use ModelLogChanging;
- protected $fillable = [
- 'number',
- 'warehouse_id',
- 'owner_id',
- 'delivery_appointment_id',
- 'driver_name',
- 'driver_phone',
- "for_single_member",
- 'plate_number',
- 'driving_license_no',
- 'logistics_single_number',
- 'provide_list',
- 'receiving_type',
- 'status',
- ];
- public function wareHouse(): HasOne
- {
- return $this->hasOne(Warehouse::class);
- }
- public function owner(): HasOne
- {
- return $this->hasOne(Owner::class);
- }
- public function deliveryAppointment(): HasOne
- {
- return $this->hasOne(DeliveryAppointment::class);
- }
- }
|