hasMany( Sms::class ); } public function scopeSingle( $query ) { return $query->whereCategory( 'single' ); } public function scopeBatch( $query ) { return $query->whereCategory( 'batch' ); } }