'datetime' , ]; public function medical_center() { return $this->belongsTo( 'App\MedicalCenter' ); } public function test_results() { return $this->hasMany( 'App\TestResult' ); } public function test_types() { return $this->hasMany( 'App\TestType' ); } public function findForPassport( $username ) { return $this->where( 'cell_number' , $username )->where( 'status' , 'Active' )->first(); } public function messagesSent() { return $this->hasMany( 'App\Message' , 'sender_user_id' ); } public function messagesReceived() { return $this->hasMany( 'App\Message' , 'recipient_user_id' ); } public function packages() { return $this->hasMany( 'App\Package' ); } public function items() { return $this->hasMany( 'App\Item' ); } public function labels() { return $this->hasMany( 'App\Label' ); } public function cycles() { return $this->hasMany( 'App\Cycle' ); } }